New York City adopted the law in the summer of 2021, one of multiple measures to help its thousands of restaurants recover from the COVID-19 pandemic.