There are times when judges are just politicians in robes, and then there are times when they don't even know how the law works.
https://www.techdirt.com/articles/20170420/13353437201/ny-judge-says-prior-restraint-is-americas-best-defense-against-internet-chaos.shtml
This guy would make an EXCELLENT constitutional scholar to rival that of Barack Obama.
There's a link in the comments of the article to a legal blog search for the judge in question. It seems he's got a habit of making really bad rulings, including rulings with the obvious and specific purpose of protecting corrupt and legally dubious actions by not-quite-real agencies the state of New York.