Environmental Agreements in a Two-Level Dynamic Framework