The plaintiffs allege that features on the companies' social media platforms, like endless scrolling, kept them hooked and harmed their mental health.