The EU chief’s remarks came just hours after Donald Trump yanked the U.S. from the landmark climate accord.