State lawmakers racing to strike deal on school funding with shutdown deadline looming