Stanford, Oxford and Georgetown universities have won praise for promising to purge their endowments of direct investments in coal, embracing the fight against climate change.