All military spending comprises ~10-15% of the budget, just a FYI.
The military budget isn’t stopping anything. In 2022, $4.1 Trillion was spent on mandatory programs (social security, Medicare, Medicaid, income security).
Social security, Medicare, and Medicaid alone were just shy of $3 Trillion.
A part of that is that there’s the entire budget of all federal outlays and then “the budget” which is what the President requests and Congress authorizes.
That is solely the discretionary spending. It’s unfortunate that it’s the only thing that actually gets talked about in the media.
Related, but interest on the debt is set to pass military spending like next year even.