The company’s topline saw a robust growth on its core search business and cloud computing, as it ramped spending on artificial intelligence.