SACRAMENTO, Calif. (AP) – The Legislature passed California’s massive state spending plan Friday amid sharp divisions over whether the compromise struck by Democrats and Gov. Jerry Brown will further the state’s recovery or eventually return it to the multibillion-dollar deficits common during the recession.

Lawmakers had until midnight Saturday to send the governor a balanced budget for the fiscal year that begins in July, but they acted swiftly after the state’s top Democrats reached a deal earlier in the week. Both houses approved AB110 on party-line votes: 28-10 in the Senate and 54-25 in the Assembly.

Senate leader Darrell Steinberg said the $96.3 billion Democratic spending plan ends the “doom-and-gloom” scenarios that were a hallmark of years past, when deficits grew into the double digits, state programs were eliminated, workers were furloughed and budget deadlines were blown by weeks and sometimes months.

“The passage of the budget may just represent the end of one very difficult era and the beginning of a new and better era – an era of economic growth, hope and restoration,” said Steinberg, a Democrat from Sacramento.

Republican lawmakers in both houses of the Legislature were less enthusiastic. They said the spending plan contained accounting gimmicks and failed to address some of the state’s most pressing fiscal time bombs, including tens of billions of dollars in unfunded public employee pension liabilities.

Republican Assemblyman Jeff Gorell also said it contains additional spending that will come back to hurt the state once the higher sales and income taxes passed by voters last fall expire.

“We will have to make cuts again,” said Gorell, of Camarillo. “With this budget, we have positioned ourselves perfectly to repeat the mistakes of the past.”

Thanks to a recent voter-approved initiative, Democrats could pass the budget on a simple majority vote and did not need Republicans’ support. Democrats noted the budget maintains a roughly $1 billion reserve and will not restore all the programs cut during the recession.

It also funnels significantly more money to K-12 schools and alters the education funding formula so more money will flow to district with high levels of students who come from low-income families, who are not proficient in English or who are foster children. The funding shift was one of Brown’s top legislative priorities of the year.

“Today we vote on a budget that marks a new beginning for California,” said Democratic Assemblyman Bob Blumenfield, of Woodland Hills. “By passing this budget today, we can solidify California’s recovery.”

Democratic lawmakers said they did not get the spending restorations they sought because the leadership agreed to go with the governor’s more conservative estimates of tax revenue in the coming fiscal year. They favor a revenue estimate offered by the nonpartisan Legislative Analyst’s Office, which was $3.2 billion higher.

Many Democrats hope to reopen the budget after the first of the year if revenue does indeed come in ahead of the governor’s estimate, but Brown has said he agreed to no such thing.

Among the objections raised by Republicans and even some Democratic lawmakers was a funding shift agreed to by the governor that transferred $500 million from an account funded by industry fines that is supposed to pay for the state’s efforts to reduce greenhouse gas emissions. The money instead is being lent to the state’s general fund.

Similar internal transfers from years past have left the state owing billions of dollars from its general fund to a variety of state programs. Republicans said this budget makes too little headway in repaying that money and in addressing the state’s longer-term debts, primarily pensions and retiree health care obligations.

Republican Sen. Ted Gaines, of Rocklin, also noted that the state will be challenged to pay for the governor’s high-speed rail and water-delivery projects, which have a combined price tag approaching $100 billion.

He asked lawmakers to think of the long term “so that we can grow the economy fast enough so we can address the unfunded obligations that we have.”