German Chancellor Friedrich Merz said he plans to stay in office after his party’s losses in two state elections on Sunday, and doubled down on the government’s plans for reforms to Europe’s biggest economy.