Caste system has always benefited the unscruplous ruling class. In the past, the brahmins and Kshatriyas were favoured. In the recent years, the cycle has reversed.
However before crying for legal intervention, remeber the following.
If I own a house I have every right to allow or prevent anyone from entering it. I may have any reason for it. You may call me mean or names. But you have to obey what I say because it happens to be my house.
If some meaningless traditions disallow you from entering a temple, stop recognizing that temple. Throw away that religion if required. Do not clamour for legal intervention.