could we spend that on schools and housing and infrastructure and welfare instead?
15% of federal spending is for defense, of which F-35 spending is part of.
To compare, 22% is for social security, 14% is for health, 10% is for medicare, 3% is for education. Note that this is federal, most of education spending is at state and local level.
https://fiscaldata.treasury.gov/americas-finance-guide/feder...
For $30 BN/year the entire country gets 5th generation gets that are by far the best in the world, and for $31.5 BN a single city gets to fund its public education with results that are (maybe) average for the OECD countries.
[1] https://comptroller.nyc.gov/reports/spotlight-school-budget-...