The Alphabet company plans a major outlay after its rivals Microsoft and Meta have been pulling ahead in investments.