The Trump administration made the announcement hours after Iran said that the Strait of Hormuz was open to commercial ships.