A federal judge has dealt a setback to Justice Department efforts to seek a new indictment against former FBI Director James Comey.