There's nothing new about this.
The government has been providing aid to the freight railroads for major construction projects for decades. Just as it provides funds for road construction, etc.
At least infrastructure improvements for the freight rail system will yield increased revenue and profit. As contrasted from would-be billions wasted on "high-speed" passenger rail projects that would be money-losers from the outset.