Germany compromises on rules to prevent sovereign-debt crises