The court of appeals concludes the 2025 policy was driven by unlawful intent to harm a politically unpopular group.