The history of favoritism in NY towards the left and liberalism.
One can certainly make that claim with regards to the legislative and executive branches (especially in NYC).
However, I don't think it applies to this judge.
While this judge in question is a registered Democrat, a look at some past rulings and statements would suggest that he's not a "blue no matter who" type, and has previously ruled in ways that weren't within the Democratic consensus or "liberal orthodoxy" for lack of a better term.
For instance, the last high profile case this judge was involved in back in 2020, was one where he granted a restraining order against the New York State Liquor Authority, in favor of a place that had been allowing some prohibited large gatherings in violation of the Covid restrictions, thereby allowing the establishment to keep their liquor license and remain open. Such a ruling would indicate that this judge in question isn't the type to "just go along with everything NYC progressives want"
He's also issued rulings against NYC zoning committees and expressed sentiments of "getting government out of the way", as he said the city regulations on new housing permits -- his words “seems like Rube Goldberg, Franz Kafka, and the Marquis de Sade cooked it up over martinis.”
He also had notable rulings against then-mayor Bloomberg (a democrat) and his administration.
This judge has also describes himself as a "free speech absolutist" and has had affiliations with libertarian leaning organizations going back to 1994.
So, Trump's situation doesn't seem to be the result of some sort of "activist partisan judge" as Trump and his team like to suggest.
It's a case where Trump was being deliberately difficult throughout the process by purposely dragging his feet with regards to complying with subpoenas, making disparaging social media posts about court staffers and not promptly removing them when asked, etc... and then trying to play the victim when the judge imposes the contempt fine that he told him he was going to enforce if he didn't start cooperating.
"I'm giving you a warning about X and Y... if you don't start doing X in a timely manner, and don't stop doing Y, I'm going to find you in contempt and fine you"
(Trump decides to
keep on Trumpin')
"Okay, well I've warned you multiple times about these, you're officially getting a 110k fine"
Trump: "It's a Democrat Trump-hating far-left judge, this is all rigged against me"