As militaries reload their arsenals and absorb the lessons of the Iran war and the war in Ukraine, these companies could benefit.