When classroom jobs were female college graduates’ best option, U.S. schools could skimp on wages. To fill vacancies now, districts and state legislatures need to offer competitive pay.