US President Trump dismissed inflation concerns as consumer prices surged to a three-year high, attributing it to energy costs from the war in Iran.