I would file a complaint with the station immediately. The cop will get desk duty and never think about being such a jerk again. I know this from experience =) Not that i was in the same situation, but that i was treated horribly by an officer when i was well within the law and he was not let out in a cruiser for a while after i spoke with the sergeant and filed a complaint.
edit: Unless you didnt get his badge number, but if it happens again, you know what to do!
edit: Unless you didnt get his badge number, but if it happens again, you know what to do!