From which you can download R&D spending as a percent of GDP in an excel spreadsheet. They also have nice breakdowns for research, development, and facilities.
If you look at total Federal R&D (all of the 3 above), it has indeed declined as a percent of GDP (although not in real terms).
1976: 1.23% 1986: 1.2% 1996: 0.89% 2006: 0.99% 2016: 0.81%
Then there is a plunge:
2017: 0.67% 2018: 0.71%
but the plunge comes with an asterisk: "Beginning in FY 2017, a new official definition of R&D has been adopted by federal agencies. Late-stage development, testing, and evaluation programs, primarily within the Defense Department, are no longer counted as R&D. "
So, it's fair to say Federal R&D spending is at least stagnant and probably in a slow decline as a percent of GDP.
There is plethora of other Federal agencies that fund research, such as the EPA, NIST, NASA, Federal Aviation Administration, Food and Drug Administration, even the Bureau of Land Management is in on the act. The VA funds research in prosthetics. The Health and Human Services department (including CDC) funds research.
As best I can tell, total Federal outlays for research are about 120 Billion. https://www.whitehouse.gov/wp-content/uploads/2018/02/ap_18_...
Exactly! And they are the main organization for funding non-medical basic science in the nation.