Tesla struck a series of deals with regulators and a Chinese artificial intelligence company during a quick trip to Beijing on Sunday and Monday by Elon Musk, the automaker’s chief executive, potentially clearing the way for the company to offer its...