'Devastating' layoffs loom in school districts