The settlement brings a two-month legal fight over Paramount's Warner Bros. Discovery takeover closer to an end.