Google’s parent Alphabet Inc. managed to grow its New York City workforce by thousands without provoking public ire.