The court cleared the Education Department to withhold money for teacher-training projects in eight states, including Illinois.