U.S. President Donald Trump signed an interim deal to end the war with Iran and reopen the Strait of Hormuz, speeding up the timeline for the agreement to go into effect despite blowback from Republicans who said it amounted to a victory for Tehran.

What is known as a memorandum of understanding is now in effect, a U.S. official said. It was unclear if Iran had immediately begun taking steps to fully reopen the Strait of Hormuz.

Trump told reporters he signed the document at the palace of Versailles near Paris, where he had dinner with French President Emmanuel Macron. Versailles was where leaders of the great powers gathered in 1919 to sign the peace treaty that formally ended World War I.