A judge has told the editor of the New York Post that he cannot rely on editorial privilege to avoid revealing details of a conversation about a cartoon that likened President Obama to a chimpanzee.