City of New Haven changes course on school layoffs