US gas prices surged due to the conflict with Iran helping push overall US inflation to its highest level in three years.