A lot of the tech is at least dual use though. Think of imaging stuff: like DSP, radar, phased arrays, cameras and the like.
(I wish Thermal and Night Vision was cheaper)
I was just looking it up the other day and the first wireless time system was implemented by US and French defensive systems.
GPS, the Internet, etc... DARPA projects alone are impressive. https://wikipedia.org/wiki/DARPA#Projects
I do miss those private research groups like Bell Labs and Xerox PARC though.
NASA does a lot of good work too, and there are some really cool space projects there that need more funding.