The court siding with the police union that sued to overturn the ban.