Senate passes bill to ease states’ budget woes, save jobs of thousands of teachers, police