That's not the rule.
The rule is “approve developments such that you meet state housing requirements or lose your ability to deny planning approval to otherwise legally-compliant developments”.
There is no suing involved: the requirements are known up front, and the consequence of not meeting them is automatic.
> Like, the state already had targets set for cities for a long time, and most cities just kinda ignored them.
Yes, that's why they changed the consequences from just “lose access to certain funding, and lose preference points in applications for other funding” to be that plus losing the ability to block housing developments.
And those new teeth have been biting very hard.