Collective Action and the Evolution of Intergovernmental Cooperation