The House on Wednesday passed a bill that would lead to a nationwide ban of the popular video app TikTok if its China-based owner doesn’t sell, as lawmakers acted on concerns that the company’s current ownership structure is a national security threat.