His remarks came as the war in Iran continues to rattle the global economy and contribute to rising gas prices in the U.S.