> Wasn’t the military budget higher back then because of active wars?
Yes, the spending on the Apollo program is pretty close (as share of GDP) to the current military budget, not to the contemporary (1960s) military budget, which ranged from a 7.6-9.4% of GDP.
I don't have the numbers though.