The way it was worded was indirect discrimination. Someone has fucked up and I'm really surprised that the school allowed this to continue as it did.
I have black female friends from across Africa and none of them has hair damage from braiding etc. Some crop their hair short so they can easily wear wigs. They braid their daughters hair from a few months old.
The hairstyle that you see in the picture, which got the girl sent home, wouldn't be allowed in a school in Africa.
The Staff, especially the Head need to update their training.