Alabama was set to take TikTok to trial over claims that it intentionally addicted young users.