Google, a unit of Alphabet, trails Amazon and Microsoft in cloud computing, but the market is one of the tech giant’s best bets for growth as its core search advertising business matures.