Amerikanska fordonstillverkaren General Motors dotterbolag Cruise har ingått ett mångårigt samarbetsavtal med Uber.