ST. CLAIR, Mich.—At first, North America’s biggest auto-parts supplier was thrilled to snag the job of making enclosures for the batteries in General Motors’ new electric pickup. The contract was so ...