Just because more than one school has these limitations doesn't mean that it's legal.
No it is legal, you willfully consent to be a apart of the program so you play by their rules while you do. If you don't like it you can leave the program. I am willing to bet to even bet that somewhere there is a signed document where you said you wouldn't.