A coalition of LGBTQ+ and historic groups sued the administration after it ordered the flag's removal in February.
Washington says it "will not impede" vessels in the Strait of Hormuz travelling to and from ports of other countries.