Thanks for the comment. Your reference [1] shows that NASA's budget is typically 0.5% of the total Federal budget in recent years, not the DOD budget. In 2020, NASA was about 23 billion and the DOD was about 766 billion, or about 3%. As to your other point, yes, some of the DOD budget is spent on space. That number will continue to increase.
Interesting tidbit: In constant 2020 dollars, peak NASA spending during Apollo was only twice today's budget.