WASHINGTON — Attorney General William Barr on Tuesday took to the podium at a national gathering of attorneys general to attack one of the few bipartisan targets — big technology.

The speech at the Washington Hilton took place a few hours after House Democrats announced the two articles of impeachment against President Donald Trump. Barr focused on a common concern: the growing power of a few internet giants, whose "size" and "pervasiveness" he said, posed a big concern.

"In D.C., it's hard to find many things that everyone agrees on. One thing that I found wide and bipartisan support [for] is the government taking a closer look at the leading online platforms and competitiveness of digital markets," he said.

The Department of Justice and the Federal Trade Commission are overseeing investigations of the country's largest technology companies, including Amazon, Facebook and Google. Those investigations come as a coalition of 50 attorneys general is investigating Google and 47 attorneys general are investigating Facebook.

Barr said he had recently met with the attorneys general groups leading the Facebook and Google probes and thought the coordination between them was strong.

Barr's speech was not free of political points. He defended the power of DOJ and the laws by which it governs. Some have accused the federal government of allowing the deals that gave birth to today's largest technology companies.

Politicians, including presidential candidate Elizabeth Warren, have also said current U.S. antitrust laws are unfit to regulate today's internet giants. Companies like Google and Facebook have wide-ranging impact on the everyday lives of many Americans. They also offer their product free, complicating a U.S. tradition of judging whether something is a monopoly by its impact on prices.

Warren has railed against the power of big business and is looking to drastically change U.S. antitrust policy to tackle it, according to a draft of the bill that was obtained by CNBC. It would also give the FTC more power over antitrust regulation, at a time both agencies are seeking to tackle the power of the country's biggest companies.

"It's become clear that not every problem related to online platforms comes within the reach of antitrust laws. Some have therefore proposed expanding the antitrust laws to reaching other noneconomic harms. Drastically reinventing the antitrust laws, however, is neither easy nor advisable," Barr said.

"The Sherman Act (federal anti-monopoly law), which has been around for over a century, has proven flexible enough to adapt to a wide variety of industries including digital platforms. We are open to considering new tools and target modifications. But a wholesale departure from the antitrust laws focused on competition is unwarranted."

Barr listed a number of issues that fall outside of antitrust that his agency would look at tackling: privacy, transparency, consumer fraud child exploitation and public safety.

As an example of tools beyond antitrust, Barr said the DOJ is "thinking critically" about Section 230 of the Communications Decency Act.

Section 230 provides internet companies legal immunity for their users' content and allows them to moderate users' content with impunity. While tech companies have argued that the law, enacted in the 1990s, is still necessary for their continued innovation and ability to remove harmful content from their sites, some lawmakers have contended it now provides too broad of a shield to dominant platforms.

The National Association of Attorneys General sent a letter proposing an amendment that would give states power to prosecute crimes under the statute. The DOJ is likewise "studying section 230 and its scope," Barr said.

He also alluded to a frequent claim by conservatives that platforms "selectively" moderate political speech on their platforms under the auspices of Section 230 and referred to a court decision that said the breadth of the law was no longer necessary.

Despite these other remedies, antitrust remains a "core focus of the department's review," he said. "Ultimately fair competition can cure many of the ills we see. In a functioning free market, consumers can demand alternatives that better address their preferences, including for greater privacy, more transparency or increased safety. For consumer choice and the free market to work, however, firms have to be playing by the established rules."

— CNBC's Lauren Feiner contributed to this report from Englewood Cliffs, New Jersey.