The US stock market closed at a historic high, and expectations of the reopening of the Strait of Hormuz boosted market sentiment.