It doesn’t. You can almost[1] always opt out of class action lawsuits to pursue your own suit. This would be expensive and unwise for most people, but you have right.
[1] There are rare exceptions.
This is humanity vs Mark Zuckerberg.
Courts aren't lacking in budget to hire more people. They're lacking in people available to hire, with the specific expertise that they need to fill any gaps. The legal profession, at least in the US, consistently has some of the lowest unemployment rates across the board. Unlike over here in the tech sector, the scarcity is in available talent, rather than available jobs.
Getting the right people might be an issue. But the tech sector is actually a great example of how to do that. The tech sector has also grown beyond what it could sustain with just people who are in it for the love of tech, and how it managed to do that would be a great case study. A good work-live balance, consistently high salaries and great outreach were certainly among the contributing factors. All of which boil down to throwing money at the problem in a smart way