Trump said the US reached a deal with Iran to reopen the Strait of Hormuz, a possible end to a 15-week conflict that upended global oil markets.