In 2019, France and Germany agreed to pump billions of euros into a plan to boost Europe’s battery industry and catch up with China and the US. Five years later, that effort is running out of steam.

As electric-vehicle sales slow, companies including Volkswagen, Stellantis and Mercedes-Benz are scaling back or refocusing battery projects. Chinese manufacturers are slashing costs and the US is drawing away investment with lucrative subsidies.