New York City’s mayor wants major companies to hire employees directly rather than relying on contractors. The firms say that will raise prices and slow service.