Yes, I've never found out to what degree the claim of gang attire was reasonable. Even if it was though, there's a conflict between the student's right to religious expression and the school concern for safety. I would bet if this gets to court the student would win, since as you say it's up to the school to resolve their gang problems, and I don't think the courts would hold that there's a compelling government interest, which is the standard here.