A pupil who says she was repeatedly restrained took her independent special school to court.