Paramount settled the lawsuits that were slowing down its Warner Bros. Discovery deal, paving the way for the merger.