President Trump has invoked the Cold War-era Defense Production Act to spur the production of more munitions, stockpiles of which have dwindled amid the U.S. war against Iran and years of heavy American military aid to allies such as Ukraine and Israel.