Elon Musk’s EV maker has aggressively pursued lawsuits against other former employees and rival companies that it has accused of poaching engineers and stealing proprietary data.