TikTok agreed in principle to settle a lawsuit from a Florida teenager who claimed the platform harmed his mental health, as thousands of child social media addiction cases remain pending.