> Changing the system means removing the potential for abuse of power, not punishing abuse of power after the fact.
At a certain point, punishing abuse of power after the fact is the only way to discourage the potential abuse of power. Like there is nothing that actually stops you or me from going and kidnapping someone. And that same dynamic applies to someone who happens to also be a sheriff who controls a jail due to his employment. There is no magic wand for the system to wave that makes it so that the individuals employed by that system can't simply break the law.
The warrant here was approved by a magistrate judge, and I would suggest making the process for approval more robust to reduce this kind of abuse.
Personal civil liability and firing can also help.