The ruling is correct. Go after the department, not the individual officers, when they follow department rules that may need reform.
Then, let the department penalize the individuals and change its rules if need be.
That's a much better outcome than just getting the heads of a few low level individuals but letting the rest of the system keep going.