Higher fuel prices and economic fallout from the 2026 war with Iran emerged as a political liability for Republicans ahead of the U.S. midterm elections.