The fast expansion of Waymo’s driverless car service is growing competition for Uber. The companies are also partners.