District attorneys from 30 California counties have sued Gov. Gavin Newsom, seeking to block his plan to commute the death sentences of all 548 people facing execution in the state.

The prosecutors filed the lawsuit on Monday with the California supreme court, alongside victims’ relatives and advocacy groups. They argue Newsom abused his executive power and failed to give district attorneys and victims’ families proper notice before announcing the mass clemency action earlier this month.

Newsom says his clemency authority allows him to commute all the death sentences at once, changing them to life without the possibility of parole. He argues notice is required for individual commutation applications, not when he grants clemency on his own initiative.

The petition is backed by prosecutors from major jurisdictions including Los Angeles, San Diego, Riverside and Sacramento. It says victims and district attorneys should have had an opportunity to provide input before clemency was granted.

“Governor Newsom decided his personal views should override all those who actually participated in the process, followed and applied the law. He did none of that, as he freely admits. That alone is an abuse of power that must not stand,” the petition said.

Under California’s constitution, the state supreme court must also approve commutations for people convicted of multiple felonies. Newsom has asked the court to approve clemency for the 382 death-sentenced prisoners in that category.

The proposal has divided prosecutors and victims’ advocates. The district attorneys of Santa Clara and Contra Costa counties voiced support on Monday, saying the death penalty was outdated, ineffective and costly. Other state prosecutors are due to speak in favor of the commutations at a press briefing on Tuesday.

Family members of some victims have also backed commutations, including the sisters of Polly Klaas, who was 12 when she was killed in 1993. The man who killed her is among the death row prisoners granted a commutation. Polly’s father, Marc, opposes the plan and is part of Monday’s petition.

“Nothing will undo our loss, and we don’t ask anyone to pretend otherwise. What we are asking is that California stop treating survivors’ pain as permission for state killing – and start choosing a public safety approach that supports healing and prevents harm,” the sisters wrote in the Guardian on Tuesday.

Newsom announced the plan as his gubernatorial term was coming to an end, saying he had a moral imperative to oppose state-sanctioned killings. He has previously imposed a moratorium on executions and dismantled the state’s death row chamber at San Quentin prison.

A former California prisons director who oversaw four executions has supported Newsom’s announcement, citing the risk of executing innocent people. At least eight people on California’s death row have been exonerated over the last four decades.