Domestic factories that make batteries to store power to meet America’s rising energy demand depend on Chinese components and federal subsidies.