Nearly 200 countries overcome divisions, producing 156-page rulebook for implementing landmark 2015 Paris Agreement.