That wouldn't make the rail system a sustainable business because it would only make money when there are problems with sea freight. To be sustainable it needs regular bookings. That's likely to be high value goods where timely and reliable delivery are important.
Also bear in mind these goods are shipped directly to cities anywhere in Europe. For some goods Madrid might be a better hub than any sea port and it's is nowhere near the sea, so sea freight would still need to be transferred to rail or road to get there. That's not such an issue for London, but it's a factor for many of these routes.
I don't get your point about goods are shipped directly to cities? The train goes to Rotterdam and various other locations. Rotterdam has a huge infrastructure (train/truck/barge) already for delivering containers to the final destination. That would just be reused.
If it's the United States then trains across central Asia are harder to stop and require bombing a third country (unlike a shipping blockade which just requires a threat and which doesnt require pissing off a third party).
If for some reason USA wanted to stop a train, a few payments to the poorest dictator along the route would get it done. They wouldn't even have to stop anything permanently to make shipping much less reliable.
The US could certainly make a few payments to a poor dictator in Central Asia to stop a train unless, of course, that country was reliant upon that train for the flow of critical goods, in which case it would take more than a few payments.
Other ingredients to the mix would include insurance and complex financial trades (e.g. derivatives).
With such a rail option you'll have an alternative: by default use container vessel then in case of a problem switch to the rail.