Is it legal for schools to ban wigs?

Yes, it is legal for schools to ban wigs or anything else they think is inappropriate. If a person needs the wig for a medical reason, the school will make an exception in most cases.