Until municipalities pay a price for infringing on basic rights, these kinds of impositions and police state actions will continue.
This sort of thing will have consequences. Even if only at the individual officer level it will change the playing field.
Not if these government employees retain their employment or are rehired elsewhere. They need to be toxic and it needs to go up the chain of command. Department heads and chiefs simply reflect the attitude of the elected officials.