The app-based transportation company Uber faces a challenge from one of its biggest investors: Google. The search giant is preparing to offer its own ride-hailing service, most likely in conjunction with its driverless-car project.