I'm not saying what you did was completely correct, but I guess it worked for you in your current circumstances.
I have to say though, if this attitude is taken every time an officer wants to be a douche, then it'll only get worse and your causing the rest of society to believe that to be submissive is okay.
You need to fight for your rights, period. After a complaint you may very well be harassed, but if they harassed your family that would be criminal harassment. If at any time a court finds them to be the least bit negligible in how they go about their duties - they're lives are fuck*d. Lose their job, never work as an officer again, criminal charges, fines, lawyers, possible jail, too much to lose just to get back at some random members of the public.