Trump pulls US from global warming accord, to allies' dismay