Teachers appear to have benefited most from the effort to save jobs with the $787 billion recovery package, which sent billions of dollars to states that were on the verge of ordering heavy layoffs in education.