NASA actually receive lots of funding(might be second after military). Most of their work doesn't align with any of the politics promises, even then they receive good chunk of budget spending.
NIH 2018 budget is $37B, NSF is $7.8B. DOD budget just for R&D and test/evaluation is $88B.
The federal budget is about $4000B. Discretionary spending is about $1200B. NASA is so far down in the noise of this that it's not funny (20B/1200B ~ 1.7%).
As an example, Federal highway spending (not state) is $44B.
https://en.wikipedia.org/wiki/Budget_of_NASA#Political_oppos...