Hungarian lawmakers passed legislation allowing for a ban on certain car-hailing services, making the Central European country the latest European Union member to lock horns with Uber Technologies Inc. after it upset the local taxi business with low prices.