"Markets have been predicting that Trump was looking for an off-ramp in Iran," said Jamie Cox, managing partner at Harris Financial Group. "Today, he got one and took it."