So you asked your city a question regarding their ordinances...and the city replied by contacting your employer which resulted in disciplinary action against you?
Sounds like the beginning of a lawsuit against the city....if you have the stomach for it.
I can't deny, I was thinking the same thing. If said detective escalates I'd try to hand him his head on a platter. In court of course...