Rivian has agreed to settle a 2022 shareholder lawsuit. The automaker will pay out $250 million to qualifying investors if the agreement is approved.