Alphabet faces AI spending test as Q2 revenue tops $117B