France has shut hundreds of schools as student protests over teacher shortages and crowded classrooms escalate, with nearly 2,000 arrests reported.