To be fair a lot of Chinese rail is extremely wasteful and more of a government run full employment program than a direct economic benefit.
But I'll agree it would have probably been better to spend the Iraq/Afghanistan war money domestically on any number of things.