“The Court has vacated the trial date and indicated its preliminary approval of the settlement subject to submission of final papers and associated hearings,” Valeant said in a statement.

Allergan shareholders sued Pershing Square and Valeant in 2014, claiming they were duped as the two traded on inside information while snatching up Allergan shares in advance of making their failed hostile bid for the Botox maker that year.

The case was set to go to trial in a few weeks.

The judge added that he did not want the Securities and Exchange Commission to be bound by the settlement, according to a Bloomberg report.