The social media platform TikTok is set to shut down its service in the United States as a federal ban will take effect at midnight Sunday.