The pandemic helped shift that landscape as schools became entrenched in partisan politics.