EDGEFIELD, S.C. — Attorney General William Barr on Monday accused Democrats of trying to create a "public spectacle" by subpoenaing former special counsel Robert Mueller to testify before Congress about the Russia investigation.

In an interview with The Associated Press, Barr said the Justice Department would support Mueller if he decides he "doesn't want to subject himself" to congressional testimony. Barr also said the Justice Department would seek to block any attempt by Congress to subpoena members of his team.

There's no indication that Mueller does not wish to appear before Congress on July 17. But he put lawmakers on notice that any testimony he gives will not go beyond his 448-page report that was released in April. At a news conference in May, Mueller said the team chose the words in the report carefully and that the work speaks for itself.

"I'm not sure what purpose is served by dragging him up there and trying to grill him," Barr said. "I don't think Mueller should be treated that way or subject himself to that, if he doesn't want to."

Mueller no longer works for the Justice Department, but the department could attempt to limit his testimony about decisions he made as special counsel.

Barr spoke to the AP Monday in South Carolina, where he visited a prison to discuss the criminal justice reform Trump signed into law last year.

Democrats have criticized Barr, saying he acts more like the president's personal lawyer than the attorney general. Barr enthusiastically embraced Trump's political agenda, cast Mueller's report as a vindication for the president and launched an investigation into the origins of the probe — something Trump has repeatedly said should happen.

Barr said the investigation is ongoing and and that from what he's seen so far, it is "essential to take a deeper look at how things unfolded." He said he has not received a satisfactory answer about why a counterintelligence investigation was opened on the Trump campaign, or whether there would've been a less-drastic measure that could've been taken at the time.

Mueller's report detailed extensive Russian interference in the 2016 presidential election but he did not find a criminal conspiracy between the Trump campaign and Moscow. He did not recommend charging any Trump associates as agents of the Russian government or with campaign finance violations.

The report also outlined several instances where Trump tried to influence the investigation but people around him either refused or quietly allowed the matters to drop. Mueller pointedly said he would have exonerated Trump if he could have but did not. He also cited Justice Department guidelines that say a sitting president cannot be indicted.

Mueller will appear before lawmakers in both public and private sessions later this month. Despite the limitations Mueller placed on his own testimony, Democrats insisted the American public be allowed to watch him respond to questions for the first time since he was appointed special counsel in May 2017.

Barr declined to say how he thought Mueller handled the Russia investigation that shadowed Donald Trump's presidency for nearly two years. He said he believes his relationship with Mueller, who has been his friend for three decades, is "fine."

Barr also said the Trump administration will take action in the coming days that he believes will allow the government to ask about citizenship on the census. Barr would not detail the administration's plans, though a senior official said Trump is expected to issue a memorandum to the Commerce Department instructing it to require census respondents to say whether they are citizens.

The Supreme Court's June ruling was a blow to Trump, who has been pressing for the government to ask about citizenship on next year's census. The U.S. Census Bureau's experts have said demanding such information would discourage immigrants from participating in the survey and result in a less accurate census. That in turn would redistribute money and political power away from Democratic-led cities where immigrants tend to cluster to whiter, rural areas where Republicans do well.

Democratic House Speaker Nancy Pelosi said Monday that Trump wants to add the demand for citizenship information because he wants to "make America white again."

Barr said he has been in regular contact with Trump over the issue.

"I agree with him that the Supreme Court decision was wrong," said Barr. He said he believes there is "an opportunity potentially to cure the lack of clarity that was the problem and we might as well take a shot at doing that."