I don't think military R&D produces many academic papers, but anything going in a journal a foreign national can just buy should probably also be made available to the tax payer.
DARPA is probably the best-known route and funds a lot of academic and corporate research (including, for a while, me).
The DoD also has a bunch of other grant-making programs (Office of Naval Research, Congressionally-directed Medical Research Program, etc) and also labs that directly do research themselves. The Air Force has a big research center (AFRL) in Ohio; the army has one in Maryland (ARL), and the Navy has one in DC (NRL). There are loads of other sites as well: the army has a night vision research lab in New Jersey, for example, and the Navy has some marine mammal stuff on the West Coast.
A lot of this work--even the stuff done at DoD labs--winds up in open literature. By policy all of that is supposed to be publicly available, so you can browse it here https://discover.dtic.mil/products-services/.
I'm not referring to military funded research, I'm referring to military R&D as an academic discipline, in the same way one would refer to something like medical research.
> I don't think military R&D produces many academic papers
Do you mean researchers employed by the military? Otherwise, basically half of every STEM professor I encountered had funding via some branch of the military.