The biggest technology companies reported fourth-quarter earnings that exceeded Wall Street expectations, with executives pointing to artificial intelligence as a key growth driver.