The two countries exchanged attacks, reigniting their war over the waterway. The U.S. prepared to restart a blockade of Iran’s ports on Tuesday.