New York City’s contentious bill to regulate hotels could reshape the sector’s future in America’s largest city.