(Bloomberg) -- California is getting back into the electricity business to help shore up its shaky power grid.

The California legislature passed a measure late Wednesday that will give a state agency the authority to finance or buy power from any generator—including natural gas-fired plants—that can help prevent blackouts. The bill still requires the signature of Governor Gavin Newsom.

California leaders are racing to bolster the state’s grid in the face of a devastating drought that’s reduced its hydropower output, raising the specter of blackouts. The crisis has intensified in recent months, as supply-chain snarls and a solar-trade dispute have delayed renewables projects—key resources in California’s quest to clean its electrical system.

Read: Biden Proposes Changes to Help Rescue California Nuclear Plant

In May, Newsom proposed a strategic electricity reliability reserve that would pay for emergency power generation during times of extreme stress on the grid. The state’s budget has designated $2.2 billion for the backup generation.

Under the new legislation, the California Department of Water Resources would procure power supplies through a special approval process at the California Energy Commission—and would allow the state to sidestep certain environmental reviews and approvals. Separately, the bill also calls for the fast-tracking of clean-power projects if they meet certain labor standards and provide community benefits.

This isn’t the first time that California has ventured into the power market. During the 2001 electricity crisis, the state spent billions of dollars to buy energy for utilities that were on the verge of bankruptcy.

©2022 Bloomberg L.P.