At the same time, when I helped with research in a cognitive psychology lab in school (much closer to the present than to that law), our PI said our funding came partly from a grant from the US Navy. We worked on Bayesian models of human learning and reasoning -- so "direct or apparent relationship to specific military function" has perhaps at times been interpreted somewhat loosely?