You would be surprised. The DoD supports a really wide range of research, from biomedical to materials, energy, and computer science. After all, everything can be used to "defend" against an adversary.
It is one of the things that the US is still doing right. Lots of money is poured into basic research. Not all of them are used to build tanks and warships.