An extra insulated car filled with lightweight LH2 would not appreciably increase the cost of operating a train.
Liquified ammonia under low pressure might be more practical, if safety worries don't dominate. We already move tanks of ammonia on trains. And much worse.