How do airlines balance passenger safety with individual rights when handling in-flight incidents like assault?

I want to explore how airlines decide on punishments, like banning a passenger, and how they ensure fairness and legal compliance.