TikTok will avoid a U.S. ban after Chinese owner ByteDance agreed to a joint venture