US politicians ruled it was a risk to national security because of owner ByteDance's ties to the Chinese government.