The plaintiff, a 15-year-old girl from New Jersey, had alleged that tech giants contributed to her social media addiction, depression and self-harm.