The House has passed legislation that would ban TikTok in the United States if the popular social media platform’s China-based owner doesn’t sell its stake within a year.