Meta, TikTok, Snap and YouTube will head to court over claims they caused personal injury with addictive products.