As warfare is reinvented in Ukraine, and Silicon Valley races to maintain its A.I. lead, China’s battery dominance is raising alarms far beyond the auto industry.