The part in the constitution about "promote the general Welfare" (first sentence) definitely depends on funding research.
defense is squarely not a government responsibility. not federal at least. state militias and small arms in the second amendment are respectively nainle for US defense