A little caution regarding what JS said above. That is, you may not be in "trouble" if you get off a flight and then go find a supervisor to complain. However, if you refuse to comply with a direction from a member of the flight crew, that can be a federal crime and you *might* get in trouble for refusing to comply with the order, even if the order is questionable.
(I am a lawyer, but not a criminal lawyer. This is written from memory. I have not researched what effect the "questionable" nature of the order would have on the outcome of any criminal prosecution. However, my point here is simply to mention that you don't have any "right" to require a police officer to document a paper trail.)