If the plaintiff wins in a direct claim, he/she gets awarded. Here, the plaintiffs have mainly filed for lost dividends. That's what they'll get (plus probably legal costs). Nobody else gets compensated. Only the plaintiff. Of course, if the statutes haven't expired others can file their own lawsuits.
If derivative claims win, the award goes to the corporations. Judge Sweeney mentioned $124 billion. All shareholders win. Commons and preferreds.