Trump is paying a political price as support for the war falls and Republicans face the midterm elections.
Iran's military has taken heavy losses but remains capable of missile and drone attacks across the region.
The conflict has disrupted energy and shipping routes while placing new demands on US forces and regional allies.