My opinion is the principal wants an orderly school focused on learning and not on politics. It sounds like the US students are waving the flag, not because they are patriotic, but because they object to the other side waving the mexican flag.
I don't think the principal is gay or mexican. He just does not want these kinds of problems.
I would say that this principal is falling back on zero tolerance "reasoning".