He was the founding President of the Council on Foreign Relations , formed in 1921 , Chairman of the Carnegie Endowment for International Peace , and a trustee of the Rockefeller Foundation from 1922 to 1939 .