The investment will be used to boost its AI infrastructure amid intensifying competition over AI development.