A White House official said the two sides agreed that the Strait of Hormuz must be open to support the free flow of energy.