The Constitution entitles all defendants in criminal cases the right to legal counsel, and if state or local governments are failing in that responsibility they should face class action lawsuits in federal court.
There are better ways to address the challenges faced by public defenders at the state and local level than letting the governments supporting those attorneys face class action lawsuits in federal court.