Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

WASHINGTON — Attorney General William Barr said Tuesday that the need for strong restrictions to stop the spread of the coronavirus may be passing and that the Justice Department might consider taking legal action against states that go too far.

"There are very, very burdensome impingements on liberty," he told radio talk show host Hugh Hewitt, "and we adopted them for the limited purpose of slowing down the spread. We didn't adopt them as the comprehensive way of dealing with this disease. We are now seeing that these are bending the curve, and we have to come up with more targeted approaches."

Full coverage of the coronavirus outbreak

Barr said the restrictions, such as shutting down businesses and requiring people to stay home, are intrusions on civil liberties that may be justified under the broad police powers states have to protect public health. But he said governors may go too far and interfere with interstate commerce, which is the domain of the federal government.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

If that happens, "we'll have to address that," Barr said, which could take the form of the federal government's joining in support of lawsuits that challenge state restrictions.

The Justice Department took just such an action just last week, filing a statement in support of a small Mississippi church that sued city officials who tried to shut down a drive-in church service while allowing a local drive-in restaurant to stay open.

He called stay-at-home orders "disturbingly close to house arrest."

Download the NBC News app for full coverage and alerts about the coronavirus outbreak

"I'm not saying it wasn't justified," he said, but "it's very onerous, as is shutting down your livelihood."

Barr said fighting the pandemic is like treating a cancer patient, using chemotherapy to localize the disease before switching to more targeted approaches.

"Now is the time that we have to start looking ahead and adjusting to more targeted therapies," he said.

He called President Donald Trump's plan to ease up on restrictions "a very commonsensical approach" based on assessing the status of the virus in each city and state.