Germany has been a rare success story in Europe. The lesson? Resist populism, move fast — and spend big.