Attorney General William Barr has found himself at the center of a controversy over his role in President Donald Trump's call with a Ukrainian leader urging him to investigate a political rival.

Trump repeatedly told Ukrainian President Volodymyr Zelensky in a call that Barr and Trump personal lawyer Rudy Giuliani could help investigate Trump's Democratic rival Joe Biden.

Barr was "surprised and angry" to discover he had been lumped in with Giuliani during the call, according to a person familiar with Barr's thinking.

Barr is the nation's top law enforcement officer and leads a Cabinet department that traditionally has a modicum of independence from the White House.

But under the Trump administration, the line between Attorney General and personal lawyer to Trump has been blurred.

Visit Business Insider's homepage for more stories.

WASHINGTON (AP) — As Washington plunges into impeachment, Attorney General William Barr finds himself engulfed in the political firestorm, facing questions about his role in President Donald Trump's outreach to Ukraine and the administration's attempts to keep a whistleblower complaint from Congress.

Trump repeatedly told Ukraine's president in a telephone call that Barr and Trump personal lawyer Rudy Giuliani could help investigate Trump's Democratic rival Joe Biden, according to a rough transcript of that summertime conversation. Justice Department officials insist Barr was unaware of Trump's comments at the time of the July 25 call.

When Barr did learn of that call a few weeks later, he was "surprised and angry" to discover he had been lumped in with Giuliani, a person familiar with Barr's thinking told The Associated Press. This person was not authorized to speak about the matter publicly and spoke on condition of anonymity.

Read more: Justice Department veterans say Trump could be accused of breaking 4 laws in the Ukraine whistleblower scandal

Giuliani, a former New York City mayor, often appears in rambling television interviews as a vocal defender of the president. Giuliani represents Trump's personal interests and holds no position in the U.S. government, raising questions about why he would be conducting outreach to Ukrainian officials.

Barr is the nation's top law enforcement officer and leads a Cabinet department that traditionally has a modicum of independence from the White House.

Yet to Trump, there often appears to be little difference between the two lawyers.

"I will have Mr. Giuliani give you a call and I am also going to have Attorney General Barr call and we will get to the bottom of it," Trump told Ukrainian President Volodymyr Zelenskiy, according to the memo of the call that was released by the White House this past week.

'It appears Giuliani and Barr both have the same job'

Since becoming attorney general in February, Barr has been one of Trump's staunchest defenders. He framed special counsel Robert Mueller's report in favorable terms for the president in a news conference this year, even though Mueller said he did not exonerate Trump.

Kathleen Clark, a legal ethics professor at Washington University School of Law in St. Louis, said Trump is treating the country's attorney general as if he's just another personal lawyer.

"I think it represents a larger problem with President Trump," she said. "To him, it appears Giuliani and Barr both have the same job."

Read more: Trump's actions with Ukraine were 'profoundly stupid' and beyond anything any president has ever done, historians and veteran diplomats say

Trump has frequently lauded Barr and his efforts to embrace the president's political agenda. That's in stark contrast to Trump's relationship with his first attorney general, Jeff Sessions, whom the president repeatedly harangued in public.

Trump's frustration with Sessions made clear how the president views the Justice Department — as a law enforcement agency that exists to carry out his wishes and protect him. Despite a close relationship during the 2016 campaign, Trump never forgave Sessions for withdrawing from the government's investigation into 2016 election interference, a move that ultimately cleared the way for Mueller's investigation.

Barr has said he wasn't aware of Trump's call with Zelensky until at least mid-August

President Donald Trump meets with Ukrainian President Volodymyr Zelenskiy at the InterContinental Barclay New York hotel during the United Nations General Assembly, Wednesday, Sept. 25, 2019, in New York. (AP Photo/Evan Vucci) Associated Press

Barr has come under the scrutiny of congressional Democrats who have accused him of acting on Trump's personal behalf more than for the justice system. Democrats have also called on Barr to step aside from decisions on the Ukraine matter. Those close to Barr, however, have argued there would be no reason to do so because he was unaware of the Trump-Zelenskiy conversation.

The department insists Barr wasn't made aware of the call with Zelenskiy until at least mid-August.

Barr has not spoken with Trump about investigating Biden or Biden's son Hunter, and Trump has not asked Barr to contact Ukranian officials about the matter, the department said. Barr has also not spoken with Giuliani about anything related to Ukraine, officials have said.

Read more: Rudy Giuliani claims he's 'the real whistleblower' and that no one will know the real story on Trump and Ukraine 'if I get killed'

Trump has sought, without evidence, to implicate the Bidens in the kind of corruption that has long plagued Ukraine. Hunter Biden served on the board of a Ukrainian gas company at the same time then-Vice President Joe Biden was leading the Obama administration's diplomatic dealings with Ukraine. Though the timing raised concerns among anti-corruption advocates, there has been no evidence of wrongdoing by either Biden. There is no evidence that Hunter Biden was ever under investigation in Ukraine.

The Justice Department was first made aware of Trump's call when a CIA lawyer mentioned the complaint from the unidentified CIA officer on Aug. 14, said a person familiar with the matter who wasn't authorized to discuss the matter publicly and spoke anonymously. Some Justice Department lawyers learned about the accusations after the whistleblower filed a complaint with the intelligence community's internal watchdog.

The watchdog later raised concerns that Trump may have violated campaign finance law. The Justice Department said there was no crime and closed the matter.