First order of action: Immediately contact an attorney in your jurisdiction and work with him/her to identify the best civil rights/tort lawyer in your jurisdiction, then hire that attorney;
Second order of action: Immediately after you have identified the appropriate attorney--but no later than in the next few days--file an official complaint with the officers' department (I hope you got their names--in any event, describe the events fully so that it will be clear which officers your complaint applies to);
Third order of action: Stick these right-violating, arrogant, badge-heavy fools who have discredited their uniform and office to the wall.
And I say all of that as someone who is probably as pro-LEO as anyone on this entire forum. I have volunteered countless hours working with various LE agencies across the country and will continue to do so. But I can assure you, there are too many--a minority, but too many nonetheless--who believe that their badge and gun give them the authority to enforce their "opinions" regardless of the law. And the best thing for LE generally and their agency specifically is for those types to be identified and rooted out. They are drunk on their power as an LEO and will only bring their agency discredit.