China is doubling down on efforts to keep unprofitable factories afloat despite for years pledging to curb excess capacity, adding to a glut of basic materials flooding the global economy.

The country’s overproduction of steel, aluminum, diesel and other industrial goods has driven down prices and crippled competitors, leading to thousands of lost jobs in the U.S. and elsewhere.

China’s...