Not sure about trains, but large ocean-faring nuclear-powered tugboats have been considered to move container ship sized barges most of the way and then let battery or fossil powered tugs bring em the final mile into port.
https://onlinelibrary.wiley.com/doi/10.1111/j.1559-3584.1963...