Jay Li, a former technical lead on Tesla’s Optimus humanoid robot program, has settled a trade secret lawsuit filed by his former employer.