TikTok has settled Alabama's social media addiction lawsuit before it was supposed to go to trial.