The lawsuit filed last week alleges tech companies knew their platforms had detrimental effects on young people’s well-being.