Alphabet posted second-quarter earnings after the close of trading on Wednesday. Capital spending doubled relative to a year before, and the company lifted its full-year forecast on the metric.