Giant tech companies are closing the year with a flurry of deals as they position for further advances in artificial intelligence.