A new deal is poised to make the driverless-car pioneer (turned skeptic) one of the biggest operators of self-driving trucks.