That is drive bar, It is used to increase the traction in cases where drive motor or mechanical assembly is connected to only one wheel set but this bar causes all wheels to be driven thus leading to higher traction, in modern locomotives there is more than one set of drive wheels like Bo-Bo arrangement or Co-Co arrangement hence drive bar is not needed.