From Oracle to Meta, Big Tech is reshaping its C-suite around AI infrastructure, even as thousands of workers face layoffs.