The Supreme Court on Friday seemed likely to uphold a law that would ban TikTok in the United States beginning Jan. 19, unless the popular social media program is sold by its China-based parent company.