Alphabet, which also runs YouTube and Android, said the deal would help drive growth in its cloud-computing business.