President Donald Trump scolded ExxonMobil Holdings Corp. and Chevron Corp. for their soaring profits, as oil prices surged amid the war in Iran he launched in February alongside Israel.