Chancellor Olaf Scholz’s aim to recast Europe’s largest economy with semiconductor subsidies is foundering after Intel’s big project went awry.