often people will say something in education is illegal and what they mean is "it's politically contested, must meet some requirements, and feels a bit dangerous"
ability grouping is definitely legal. single-sex schools are legal. heck, corporal punishment is legal in 17 states
it was pretty funny (for certain values of funny) to read my education law textbook on ability grouping, because it really wanted to say it was illegal but couldn't actually do so
"this district court, in a non-precedential decision, looked disfavorably on it..."