The deals will strengthen the automakers’ sources of supply for memory and storage in next-generation vehicles.