Finance exists to do this. If it's a good investment, compared to the alternatives, money will be routed to it (and away from alternatives).
Your government spending examples are examples where the government made "good" decisions, but it's equivalent to cherry-picking. For example, the U.S. government spends more on healthcare per capita than any other country, yet our healthcare is worse than most countries, AND patients still get bankrupted. The U.S. government indirectly financed the higher education bubble that has allowed college administrators to make out like bandits, AND students are still in massive debt. Government spending is an inherently vicious process because it overrides individuals' own economic judgement about how to deploy their resources and replaces it with authoritarian central "planning."
Also, most of your examples (maybe all) are defense projects. I think defense is a legitimate part of the government and the DoD can make pretty good judgement calls when they have a reasonable and limited amount of funding. But should they have gotten trillions to punish Iraq and Afghanistan for something done by the Saudis? No. We can see government spending in the U.S. becoming increasingly more catastrophic and wasteful over time because that is the nature of an inherently vicious process.