The deal, watched by the European Central Bank for its effect on inflation, comes at a tough time for Europe's biggest economy.