Spaceflight is not what you want to be picking as a point of comparison if you want to talk about funding government agencies.
> The amount the U.S. military spends annually on air conditioning in Iraq and Afghanistan: $20.2 billion, according to a former Pentagon official. That's more than NASA's budget.
https://www.npr.org/2011/06/25/137414737/among-the-costs-of-...