The U.S. military struck facilities in Iraq and Yemen operated by Iranian-backed militias that are said to be involved in attacks against U.S. forces in Iraq and Syria.