Energy prices have surged since the start of war with Iran, lifting inflation in the United States.