NASA 2018 budget is $20.7B. It is not in any way "second after military".
NIH 2018 budget is $37B, NSF is $7.8B. DOD budget just for R&D and test/evaluation is $88B.
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.