The director of national intelligence gave the Justice Department little warning before she demanded an investigation.