Companies making batteries for electric vehicles appear headed for a shakeout as government subsidies to foster the emerging industry could result in a glut by the middle of the decade.