The Pentagon is racing to buy more than 10,000 cheaper cruise missiles as the war with Iran strains U.S. missile stockpiles and puts fresh pressure on the military’s ability to quickly replace expensive weapons.