Teacher staffing is stabilizing in most subjects, but teacher-pipeline problems and declining working conditions could cause ongoing shortages in high-need subjects like science and special education.