Country-Level Emissions Abatement Decisions: A Dynamic Programming Approach