LOS ANGELES  California lawmakers, their state broke and its credit rating shot, finally sealed the deal with the governor Monday night on a plan to close a $26 billion budget gap.

The plan, which is certain to be viewed with trepidation among legislatures across the country also facing huge budget gaps, distributes pain through nearly every aspect of government services. While the Legislature pushed back on Gov. Arnold Schwarzenegger’s proposal to eliminate health care programs for children and the state’s generous welfare program, both took large cuts. So did public education, universities and local governments.

All told, the deal contains $15.6 billion in cuts, about $2.1 billion in borrowing, $3.9 billion in new revenues and about $2.7 billion in accounting maneuvers like shifting a payday into the next fiscal year, which Mr. Schwarzenegger had claimed he would not brook.

Under the new budget, which runs through the 2010 fiscal year, localities will basically serve as unwilling lending agents to the state. It will raid their coffers and repay them over time as the state’s fiscal situation improves.