The U.S. president said the agreement will prohibit Iran from having nuclear weapons and result in the immediate reopening of the Strait of Hormuz.