SACRAMENTO (AP) – Gov. Gavin Newsom declared a budget emergency Thursday that will allow California to take nearly $8 billion from a state reserve account to help plug a large budget deficit brought on by the coronavirus.

The state Senate is set to vote on the budget later Thursday, followed by the Assembly the next day. It will take effect July 1.

READ MORE: Ring Videos Show Creepy Encounters By Man At Home of Sacramento Mother And Her Children

The budget surplus California enjoyed when the year began was quickly wiped out by the coronavirus pandemic, as the state delayed tax collections, businesses suffered and spending soared to battle the virus. Now, the state faces a predicted $54.3 billion deficit.

The proposed budget would take $7.8 billion from the state’s “rainy day” fund, about half of what’s in it, to help plug the whole. Newsom needed to declare a budget emergency to legally tap it.

READ MORE: 'I Thank God': More California Churches To Offer Vaccines In Effort To Reach Underserved Communities

The rest of the shortfall will be plugged through a combination of pay cuts to state workers and delayed payments to public schools, internal borrowing, spending cuts and temporary tax increases on businesses. Newsom wants more money from the federal government to avoid some of those measures.

He said in an emergency proclamation that the money is necessary to help pay for coronavirus related expenses such as purchasing personal protective equipment, medical supplies and services for vulnerable Californians.

MORE NEWS: 'A Trend That Won't Go Away': Sacramento City Leaders Consider Permanent Plans For Street Dining

Copyright 2020 The Associated Press.