President Donald Trump at the United Nations, September 24, 2019.

Weeks before the whistleblower's complaint became public, the CIA's top lawyer made what she considered a criminal referral to the Justice Department about the whistleblower's allegations that President Donald Trump abused his office in pressuring the Ukrainian president, U.S. officials familiar with the matter tell NBC News.

The move by the CIA's general counsel, Trump appointee Courtney Simmons Elwood, meant she and other senior officials had concluded a potential crime had been committed, raising more questions about why the Justice Department later closed the case without conducting an investigation.