School hair policies could be unlawful, study finds