https://data.worldbank.org/indicator/MS.MIL.XPND.GD.ZS?locat...
https://data.worldbank.org/indicator/MS.MIL.XPND.GD.ZS?locat...
If your goals are just coastal defense and prevention of invasion from Canada and Mexico, then that's significantly easier. Those aren't the US goals and haven't been for a long time. And it seems to be overwhelmingly the case that any potential defense partner for the US (aligned interests, not judged to be themselves a threat) can successfully pass off military spending to the US.
We have created economic dependencies on our vast military spending. At a fundamental level, the $1 trillion spent on defense ends up in the hands of US service members and defense contractors. They spend that money back in the US economy.
When viewed from that (cynical?) perspective, it isn't surprising that the military's spending and scope grow year after year.