Germany: Parties agree on historic debt deal