The measure, which President Joe Biden signed Wednesday, requires TikTok’s China-based parent company to sell the social media platform or face a nationwide ban.