The F.B.I. director faced sharp questioning over an internal report that some have said called to mind the F.B.I.’s illegal spying on blacks during the civil rights movement.