Alibaba is tapping investors for fresh capital as surging AI infrastructure costs reshape spending, profits and competition across global tech.