Google parent Alphabet Inc. reported quarterly results that exceeded Wall Street estimates Tuesday, belying fears that it would be dinged by the changes in Apple Inc.’s mobile privacy policy that stung its social-media brethren.