 But the state had to slash spending to cover deficits totaling more than $78 billion over the past two years as revenues declined amid rising inflation and an economic slowdown in the state's pivotal technology industry.