Yes, exactly. You, the rest of the world, are indeed subsidizing this system to some extent, and in exchange, far fewer of your own young people are sitting in garrisons around the world, doing push-ups, playing with guns and yelling each other.
I won't defend US incompetence wrt infrastructure. But I will observe that "spending more" hardly seems to be the problem, as we seem to do plenty of that already. It's that (lack of) stuff we get in return that's the problem.
As far as global "peace", it is certainly true there is still conflict, but from the bigger picture perspective it's been a relatively peaceful half century.
Again I'll point to this chart: https://ourworldindata.org/war-and-peace. Consider that the y-axis is log scale, and contemplate the WWI and WWII bubbles at the top.