Mayor Bill de Blasio signed legislation that repeals all aspects of the law except for two safety requirements.