SACRAMENTO (CBS SF/AP) — California lawmakers have approved a sprawling bill meant to shore up the state’s major electric utilities in the face of another wildfire season.

The biggest power companies will have to spend billions of dollars on safety improvements under the bill lawmakers sent to Gov. Gavin Newsom on Thursday.

“I want to thank the Legislature for taking thoughtful and decisive action to move our state toward a safer, affordable and reliable energy future, provide certainty for wildfire victims and continue California’s progress toward meeting our clean energy goals,” Newsom said in a statement. “The rise in catastrophic wildfires fueled by climate change is a direct threat to Californians. Strengthening our state’s wildfire prevention, preparedness and mitigation efforts will continue to be a top priority for my administration and our work with the Legislature.”

The measure would also create a fund to compensate victims of wildfires caused by utility equipment in certain circumstances. Survivors of major fires last year say the measure will give them more leverage to get compensation from Pacific Gas & Electric despite it being in bankruptcy.

ALSO READ: PG&E Ordered To Respond To Damning Report Alleging Willful Failure To Fix Transmission Lines

Some lawmakers raised concerns about rushing the lengthy bill. The final draft was published less than a week ago.

But Newsom wanted the legislation before lawmakers adjourned for a monthlong recess after this week.

© Copyright 2019 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.