It’s not because of the lawsuit. Their grid really is dangerously under-maintained and prone to bursting into flames. Turning it off is the rational short-term move.
Lawsuits are filed by individuals who lost everything in wildfire. It is not the state who filed it.