Despite rising interest rates this year, the tech titans have benefited from the buzz around artificial intelligence.