Uber sued New York City to block a driver-protection law it says would limit its ability to remove unsafe or fraudulent drivers.