Amazon.com Inc. emerged as a potential savior for Argo AI, the now-defunct startup backed by two of the world’s biggest automakers, before the deal fell apart because of a sputtering economy, concerns about control and flagging faith in fully autonomous driving.