A coalition of LGBTQ+ and historic groups sued the administration after it ordered the flag's removal in February.