New York City is reining in the growth of Uber and other app-based ride services with a temporary cap on new cars picking up fares.