NYC has ~2% of the US population, and it’s a relatively wealthy slice compared to the mean. NYC has roughly 13x as many people as the entire state of Wyoming. I could see a company writing off Wyoming entirely (not likely, but possible) but not NYC.
States like CA, FL, NY, and TX can pass state laws that create defacto national regulations through sheer size, but smaller than that and you’ll have trouble.
Sure but say some company based in Lousiana has a website that violates NYC law.
What exactly will NYC do about it? Is there some mechanism to for them to block the website inside of NYC? The company would presumably have no property they could seize or employees they could imprison.
If it were a state passing the law then they could sue for enforcement in federal court but I don't think a city could?