In some ways, the social media app TikTok couldn’t have rose to prominence at a worse moment. The platform for sharing short-form video clips is owned by the Chinese startup Bytedance, and surged in popularity just as the United States’ relations with China are turning icier than they have been in years.