Tech giants Alibaba, Tencent, and ByteDance are ramping up investments in renewable energy and storage to meet the soaring electricity demands driven by AI.