Jack Ma has grown an enormous company while navigating a changing consumer culture and an uncertain Chinese regulatory environment.