I think this particular lawsuit is legitimate and should proceed.
How? I'm not a lawyer, but the law says that gambling is when you'll get "something of value". The law defining "something of value" includes "exchangeable for money"... But you can't exchange loot box rewards for money.
I don't like the lootbox scheme, but it should be coded better into the laws instead of gambling on the courts.