International ride-hailing service Uber said it was suspending service in Barcelona after regional authorities passed regulations that would limit how it operates in the city.