The US president issued the warning unless Iran reaches a deal on reopening the Strait of Hormuz by his deadline.