It's definitely not legal because they need to have an umbrella rule for the entire state. But they seem to understand the situations on the ground in the frum communities are completely different, had they been a county for themselves, they would have meet all the reopening criteria weeks ago, therefor an agreement was able to be made on enforcement.
Somehow they seem to have forgotten to inform DeBlasio.
this is atbest speculation and a pretty wild theory at that, besides its inclusion of alternative facts.
They actually are having different rules for different regiona of the state. But don't let facts get in your way.