> It should be law that lawyers can't have more than something like 5% of the settlement
Then finding a lawyer willing to go through the long and complex class action lawsuit will be even harder and/or more expensive, resulting in fewer class-action suits, meaning the punishment for these scams will be even more unlikely than it is now.
Even if lawyers got 100% of the settlement, class actions would still be worth it as deterrent.