The index had been down as much as 2.5% in the morning because of worries that the war may do more sustained damage to the economy than feared.

The war between the U.S. and Iran is threatening to widen and jolt global energy supplies.

The index had been down as much as 2.5% in the morning because of worries that the war may do more sustained damage to the economy than feared.