About 4% of the federal budget and 6% of discretionary spending at its peak, not of GDP.
Still a very high number, but nowhere near the military-budget-levels you're talking about.