The widening Iran war has upended oil production and shipping across the Middle East, straining energy supplies worldwide.