The Supreme Court on Wednesday said it will take up a challenge to a new law that could lead to a ban on TikTok in the U.S.