Amazon is spending billions more to back an artificial intelligence startup as it looks for an edge in this new technology arms race.