The case is part of growing legal action against social media companies over their impact on children and young users.