Tesla and Rivian may have resolved a lawsuit in which Tesla accused Rivian of poaching employees and stealing trade secrets.