Ride-hailing service Uber suffered a new blow Wednesday as the European Union’s top court ruled that it should be regulated like a taxi company and not a technology service, a decision that crimps its activities around Europe and could weigh on other app-based companies too.