I don't know much about Afro hair, but could she not have put it in a ponytail? I do see plenty of black kids with one, or more often two bunches. According to the article, the school said it was blocking other people's view of the board, so I can see why it was causing a problem, and bunches seem a sensible (free) solution.
My daughter has lovely bum length blonde hair, which she would love to wear loose, but for practical reasons (predominantly the spreading of nits) she has to have it tied back. I don't really see how this is different.
The hair being afro is surely not the problem, its the fact that the girl was refusing to tie it back.