Tesla Inc. said it’s reached a “conditional" settlement in its 2020 lawsuit accusing Rivian Automotive Inc. of poaching employees to steal electric-vehicle trade secrets.