The US House of Representatives has passed a landmark bill that would give TikTok's Chinese owner ByteDance about six months to divest its US assets or face a ban.