Suppliers said automakers’ rapidly shifting electrification plans will weigh on their future earnings as they make fewer parts for electric vehicles than they were banking on.