That’s not what the article says.
Poor writing by the author. The judge was specifically talking about Trump using the information to publicly attack witnesses, like he did with the rape accuser, the judge and prosecutor in this case, and does with anyone else that annoys him. He can still publicly attack them, as long as he doesn’t use any information included in the discovery from the prosecution.