Prices vs. Quantities for Self-Enforcing Agreements