Germany is set to rearm in a way not seen since World War II after the likely next chancellor, Friedrich Merz, said his government would vastly increase defence spending.