President Donald Trump said the deal would allow the Strait of Hormuz to reopen, and ban Iran from having nuclear weapons.