As I understand it in the details of the OP her dress was well within the standards set by the school. It was long enough , not too tight etc.
For once the feminists got it right. She simply looks good and was penalized for it.
It may not be law suit worthy as you claim but the girl was wronged and the others who opposed her look and dress need to be shamed for it.