Lawmakers are one step closer to giving teachers and state employees a pay raise and avoiding a school shutdown next week.