That is pretty bush league that the judge actually referenced Trump's allegations in his decision to release the records. It really sort of validates what Trump said about him.
Essentially guarantees grounds for an appeal and re-assignment to another judge, depending upon outcome.