Cooperation and the Fate of Microbial Societies