The stock market was in party mode on Friday as Iran announced it was ending its weekslong blockade of the Strait of Hormuz.