The Chinese parent of TikTok has hired a veteran communications attorney as general counsel as the popular social media app battles a new federal law that could force it to shut down in the United States.