WASHINGTON — Weeks before the whistleblower's complaint became public, the CIA's top lawyer made what she considered to be 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 declined to open an investigation.

The phone call that Elwood considered to be a criminal referral is in addition to the referral later received as a letter from the Inspector General for the Intelligence Community regarding the whistleblower complaint.

Justice Department officials said they were unclear whether Elwood was making a criminal referral and followed up with her later to seek clarification but she remained vague.

Download the NBC News app for full coverage of the impeachment inquiry

In the days since the anonymous whistleblower complaint was made public accusing him of wrongdoing, Trump has lashed out at his accuser and other insiders who provided the accuser with information, suggesting they were improperly spying on what was a "perfect" call between him and the Ukrainian president.

But a timeline provided by U.S. officials familiar with the matter shows that multiple senior government officials appointed by Trump found the whistleblower's complaints credible, troubling and worthy of further inquiry starting soon after the president's July phone call.

While that timeline and the CIA general counsel's contact with the Justice Department has been previously disclosed, it has not been reported that the CIA's top lawyer intended her call to be a criminal referral about the president's conduct, acting under rules set forth in a memo governing how intelligence agencies should report allegations of federal crimes.

The fact that she and other top Trump administration political appointees saw potential misconduct in the whistleblower's early account of alleged presidential abuses puts a new spotlight on the Justice Department's later decision to decline to open a criminal investigation — a decision that the Justice Department said publicly was based purely on an analysis of whether the president committed a campaign finance law violation.

"They didn't do any of the sort of bread-and-butter type investigatory steps that would flush out what potential crimes may have been committed," said Berit Berger, a former federal prosecutor who heads the Center for the Advancement of Public Integrity at Columbia Law School. "I don't understand the rationale for that and it's just so contrary to how normal prosecutors work. We have started investigations on far less."

Elwood, the CIA's general counsel, first learned about the matter because the complainant, a CIA officer, passed his concerns about the president on to her through a colleague. On Aug. 14, she participated in a conference call with the top national security lawyer at the White House and the chief of the Justice Department's National Security Division.

On that call, Elwood and John Eisenberg, the top legal adviser to the White House National Security Council, told the top Justice Department national security lawyer, John Demers, that the allegations merited examination by the DOJ, officials said.

According to the officials, Elwood was acting under rules that a report must occur if there is a reasonable basis to the allegations, defined as "facts and circumstances…that would cause a person of reasonable caution to believe that a crime has been, is being, or will be committed."

A Justice Department official said Attorney General William Barr was made aware of the conversation with Elwood and Eisenberg, and their concerns about the president's behavior, in the days that followed.

Justice Department officials now say they didn't consider the phone conversation a formal criminal referral because it was not in written form. A separate criminal referral came later from the Office of the Director of National Intelligence, which was based solely on the whistleblower's official written complaint.

When Elwood and Eisenberg spoke with Justice Department, no one on the phone had seen the whistleblower's formal complaint to the Inspector General of the Intelligence Community, which had been submitted two days before the call and was still a secret. The issue of campaign finance law was not part of their deliberations, the officials said.

A 'thing of value'

It is illegal for Americans to solicit foreign contributions to political campaigns. Justice Department officials said they decided there was no criminal case after determining that Trump didn't violate campaign finance law by asking the Ukrainian president to investigate his political rival, because such a request did not meet the test for a "thing of value" under the law.

Justice Department officials have said they only investigated the president's Ukraine call for violations of campaign finance law because it was the only statute mentioned in the whistleblower's complaint. Former federal prosecutors contend that the conduct could have fit other criminal statutes, including those involving extortion, bribery, conflict of interest or fraud, that might apply to the president or those close to him.

The decision not to open an investigation meant there was no FBI examination of documents or interviews of witnesses to the phone call, participants in the White House decision to withhold military funding from Ukraine, the president's lawyer, Rudy Giuliani, and Ukrainian officials who were the target of Trump's and Giuliani's entreaties.

Text messages turned over to Congress on Thursday night, in which diplomats appear to suggest there was a linkage between aid and Ukraine's willingness to investigate a case involving Joe Biden, were not examined as part of the Justice Department's review, officials said, adding that they conducted purely a legal analysis.

Justice Department spokeswoman Kerri Kupec told NBC News that the decision not to open an investigation was made by the head of the criminal division, Brian Benczkowski, in consultation with career lawyers at the public integrity section. She and other officials declined to say whether anyone dissented.

Attorney General William Barr. Jacquelyn Martin / AP

The operative Justice Department standard that the president can't be indicted while in office was not a factor, she said. Barr has said he believes the president can be investigated and prosecutors can make a determination whether he committed criminal conduct.

"Relying on established procedures set forth in the Justice Manual, the Department's Criminal Division reviewed the official record of the call and determined, based on the facts and applicable law, that there was no campaign finance violation and that no further action was warranted," Kupec said.

Kupec declined to comment on whether the Justice Department was investigating any other aspect of the Ukraine matter. There has been no public indication, however, of any such investigation.

Some legal experts are puzzled by the Justice Department's narrow approach.

"They are not by any stretch of the imagination limited to the referral," Chuck Rosenberg, an NBC News contributor and a former U.S. attorney, said. "They have the authority — in fact, they have the obligation — to look more deeply and more broadly and bring whatever charges are appropriate."

Berger added, "When you get a criminal referral, you don't go into it saying, 'This is the criminal violation and now I'm going to see if the facts prove it.' You start with the facts and the evidence and then you see what potential crimes those facts support. It seems backwards to say, 'We are going to look at this just as a campaign finance violation and oops, we don't see it — case closed.'"

In a case in which a government official is allegedly using his office for personal gain, and pressuring someone to extract a favor, the bribery and extortion statutes are usually considered, Berger said. The Foreign Corrupt Practices Act, which prohibits bribery of foreign officials, may also have been implicated, she said.

'I have received information'

In his written complaint, the CIA officer who became the whistleblower framed his allegations this way: "I have received information from multiple U.S. government officials that the President of the United States is using the power of his office to solicit interference from a foreign country in the 2020 election."

But when he first passed on his concerns, they were not so specific, officials said. He first complained at his own agency, sending word through a colleague to a CIA lawyer. The complaint eventually reached the spy agency's top lawyer, Elwood, officials said.

She was told there were concerns about the president's conduct on a call with a foreign leader, but not which leader, officials said.

She also was told that others at the National Security Council shared the concerns, so she called Eisenberg, the top NSC lawyer, officials said. He was already aware that people inside his agency believed something improper had occurred on the July 25 call with the Ukrainian president, officials said.

After consulting with others at their respective agencies and learning more details about the complaint, Elwood and Eisenberg alerted the Justice Department's Demers, during the Aug. 14 phone call, in what Elwood considered to be a criminal referral. Demers read the transcript of the July 25 call, officials said, on Aug. 15.

What the Justice Department did next is not entirely clear. A DOJ official said it was the department's perspective that a phone call did not constitute a formal criminal referral that allowed them to consider an investigation, and that a referral needed to be in writing.

The whistleblower was already taking separate action. On Aug. 12, he filed a complaint with the Inspector General of the Intelligence Community, after consulting with a staff member on the House Intelligence Committee, officials said.

At the end of August, the acting director of national intelligence, Joseph Maguire, sent the Justice Department his own criminal referral based on the whistleblower complaint, he has confirmed.

Kupec says career prosecutors in the Public Integrity Section, which works on corruption cases, were involved in deciding how to proceed, as was the national security division and the Office of Legal Counsel.

A senior DOJ lawyer who briefed reporters said the department had no basis on which to open a criminal investigation because Trump's request of Ukrainian President Volodymyr Zelenskiy to investigate a case involving his political opponent couldn't amount to a quantifiable "thing of value" under campaign finance law.

Justice Department officials said they focused on campaign finance law because that was how the allegations were framed in the whistleblower complaint.

"All relevant components of the department agreed with this legal conclusion," the DOJ's Kupec said.

Paul Seamus Ryan, vice president of policy and litigation at Common Cause, is among those questioning even the narrow campaign finance analysis. Common Cause has filed a complaint with the Justice Department and the Federal Election Commission accusing Trump of violating campaign law.

It wouldn't have been difficult for the government to determine how much money Ukraine would have spent in an investigation of Joe Biden and his son, he said,

"That would give them a dollar amount to show that Trump solicited 'something of value,'" Ryan said.