Human Rights Act 1993, s 21
Yes. It’s illegal to discriminate on the basis of race, gender, or national or ethnic origin. For example, Māori students can wear taonga at school, despite uniform codes that ban jewellery.
Schools can ask you to provide a genuine reason for wanting to wear items of cultural and religious significance.