Alphabet’s earnings beat and strong cloud growth are helping to justify raised spending projections.