Sorry, the actions of the NYPD run afoul of a SCOTUS decision from the 80’s concerning similar actions by CA LEO’s:
Kolender v. Lawson, 461 U.S. 352 (1983)
Might want to check that out.
The black-robed dictators-for-life also rubber-stamped Obamacare and came up with Roe v Wade. I suspect NYC will appeal the injunction. We'll see what happens.