Judge Juan Merchan and former President Donald Trump appear in this courtroom sketch. Trump can now publicly speak about witnesses like Michael Cohen and Stormy Daniels who testified at his New York criminal trial. (Jane Rosenberg via CNN Newsource)

(CNN) โ€” The judge in Donald Trumpโ€™s hush money trial has lifted portions of the gag order restricting what the former president can say about witnesses in the trial, such as Michael Cohen and Stormy Daniels, two days before Trump will square off against President Joe Biden at the CNN Presidential Debate.

Trump, however, cannot discuss any prosecutor, court staffer or their family members, according to a court order on Tuesday from Judge Juan Merchan that rolls back parts of the gag order imposed before the trial began. That aspect of the gag order remains in effect at least until his sentencing, which is set for July 11.

The new order Tuesday also lifts the bar on public statements about jurors but notes disclosure of any personally identifying information of any juror is still prohibited.

Merchan wrote in his decision lifting parts of the gag order Tuesday that the โ€œcircumstances have now changedโ€ following Trumpโ€™s conviction last month on 34 counts of falsifying business records.

The judgeโ€™s decision comes two days before Trumpโ€™s debate with Biden, where Trumpโ€™s conviction is sure to be raised. The former president will now be able to discuss the witnesses who testified against him as well as the makeup of the Democratic-leaning jury pool in Manhattan.

Trump spokesperson Steven Cheung said in a statement that Merchanโ€™s order โ€œleaves in place portions of the unconstitutional gag orderโ€ and that Trump plans to appeal the ruling.

โ€œThis is another unlawful decision by a highly conflicted judge, which is blatantly un-American as it gags President Trump, the leading candidate in the 2024 presidential election during the upcoming presidential debate on Thursday,โ€ Cheung said. โ€œPresident Trump and his legal team will immediately challenge todayโ€™s unconstitutional order.โ€

Last week, New Yorkโ€™s highest court declined to hear Trumpโ€™s appeal on the gag order โ€œupon the ground that no substantial constitutional question is directly involved.โ€

Trump was held in contempt 10 times during the trial for violating Merchanโ€™s gag order after he made statements about Cohen and Daniels and complained about the jury pool. The judge fined Trump $10,000 โ€“ $1,000 for each violation โ€“ and threatened him with imprisonment if additional violations occurred.

Trump repeatedly complained about the gag order throughout the seven-week trial, arguing that witnesses, including Cohen, were taking advantage of the gag order to attack him when he couldnโ€™t respond.

During the trial, Merchan said he could not legally restrict Cohenโ€™s public statements but he expressed consternation over what the former Trump fixer and lawyer was saying about the case. At one point, Merchan told prosecutors to urge Cohen not to make public statements about the trial.

In a statement to CNN, Cohen said Tuesday: โ€œFor the past six years, Donald and acolytes have been making constant negative statements about me. Donaldโ€™s failed strategy of discrediting me so that he can avoid accountability didnโ€™t work then and wonโ€™t work now.โ€

The Manhattan district attorneyโ€™s office declined to comment.

In his order, Merchan wrote that his gag order provisions โ€œwere narrowly tailored to address the significant concerns regarding the Defendantโ€™s extrajudicial speech,โ€ while noting that appeals courts have upheld the restrictions he placed on Trump during the trial.

The judge acknowledged that he was reluctant to lift the gag order pertaining to the jurors, writing, โ€œthere is ample evidence to justify continued concern for the jurors.โ€

Merchan wrote it was his โ€œstrong preference to extend those protectionsโ€ to jurors, but he said he could not legally do so.

As for the remaining protections for prosecutors, court staffers and their families, Merchan says they must feel safe to do their jobs ahead of sentencing.

โ€œUntil sentence is imposed,โ€ Merchan wrote, those covered by that part of his gag order โ€œmust continue to perform their lawful duties free from threats, intimidation, harassment, and harm.โ€

Last week, Manhattan prosecutors urged Merchan to keep in place the gag order preventing Trump from making statements about jurors, prosecutors and their family members, arguing threats against prosecutors have increased since the start of the trial.

In the filing, the Manhattan district attorneyโ€™s office said it did not oppose lifting the portion of the gag order that blocked Trump from making statements about witnesses.