The Middle East moved closer to a broader regional confrontation on Wednesday as Iran launched a failed ballistic missile attack on US forces, while the United States and Saudi Arabia carried out joint airstrikes against Iran-backed militias in Iraq.