So, 3rd behind military and NIH then?
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.