No, the money is not coming from a fixed box. When the US wants to do something (typically starting a new war), they never ask where the money is coming from. This tells you everything about how the decisions are made, if it is a priority for them, they will spend the money first and ask questions later. If green infrastructure was a real priority they would invest the money and later find ways to pay for it.
But those wars are typically fought to maintain the US status, to preserve its ability to debase the national currency effectively siphoning wealth from the world economy. Self-preservations comes first. I'm just describing the system.