The president signed an executive order pulling the U.S. out of the organization in one of the first official acts of his second term.