The "It Ends With Us" co-stars reached a surprising settlement in their lengthy legal battle on Monday, days before the case was set to go to trial.