Gov. Pat Quinn has signed into law a bill that reallocates money in the budget to avoid closing seven state facilities and 1,900 layoffs.