You can do it through democracies. Taiwan has two sets of high speed rail systems.
Are they expensive to maintain? Absolutely. In fact they bankrupted 2+ companies until the government decided to step in and foot part of the bill. But then again, if the government isn't willing to pay for basic infrastructure, what are taxes for?
(Also as a tangent, the Taiwan high speed rail bentos are to die for. I had it 5+ years back and I still remember it. Super cheap meal in a disposable bamboo lunch box. Usually there are 1-2 choices per day. I had chicken thighs, pickled veggies, steamed pumpkin, and half a marinated tea egg. The bottom half of the lunch box was filled with rice. 10/10 would eat at a busy train station during rush hour again)