Also note that most people consider social security to be an entirely different kind of government spending than anything else in that list.
Also, without a military the US would not be even 1/3rd as wealthy as it is today, given its military created the global order that secured the last 80 years of the global economic system, shipping lanes and USD dominance. You can argue over specific wars/missions being dumb, but to pretend the overall ROI on that dominance enabling 80 years of relatively peaceful global trade hasn’t been positive is to be intellectually dishonest.
The world is currently teetering on a global economic crisis over just ONE shipping lane not being fully open for a few weeks. Read more history and you’ll see this used to be the norm.