Eric Schneiderman is ready to take Donald Trump to court—again.

The state attorney general vowed Tuesday to sue the federal government if Senate Republicans pass their bill to repeal the Affordable Care Act.

“If the version of the health care bill proposed last week ever becomes law, I am committed to going to court to challenge it,” he said at an Association for a Better New York breakfast in Midtown.

Schneiderman criticized a proposal included in the bill which would shift $2.3 billion in Medicaid costs to the state government from counties, an amendment included by upstate Reps. John Faso and Chris Collins in the House version of health care reform.

“Powers not explicitly granted to the federal government are retained to the states,” the attorney general said, laying out his legal argument against the amendment. “And one of the core functions of the state is how it divides duties and obligations internally.”

New York counties currently pay about 13% of Medicaid expenses. The Collins-Faso amendment relieves counties of the burden, which the congressmen say would result in lower property taxes. But opponents say the state would have to raise taxes to pay the tab.

“It doesn’t increase or decrease health care,” Schneiderman said of the amendment. “It just messes with New York’s internal processes.”

The Senate bill lost some momentum this week when the Congressional Budget Office found 22 million people, including over 1 million New Yorkers, would lose health insurance as a result. Senate leaders have postponed a vote on the bill until after the July 4 holiday break.

Gov. Andrew Cuomo, who like Schneiderman has been gaining political currency in the Democratic Party by taking on the Trump administration, on Monday proposed a "Collins-Faso tax" to offset the expense their amendment would shift to the state.

Schneiderman called for state leaders to form an alliance against legislation pushed by the Trump administration.

He touted other times he challenged the president, including his lawsuit against Trump University and probes into the president's charitable practices throughout the years.

“Before there was ‘Lyin’ Ted’ and ‘Little Marco,’ there was ‘Clockwork Eric,” he joked, referring to President Donald Trump's monikers for Sens. Ted Cruz and Marco Rubio and a 2014 cover story by a magazine published by Trump’s son-in-law and senior adviser Jared Kushner. “The front page of The Observer was my picture as the Malcolm McDowell character in A Clockwork Orange.”

In the last few months, Schneiderman has established himself as a leader of the legal resistance to Trump. He joined the ACLU in fighting the president’s travel ban from several Muslim-majority countries and vowed Tuesday to take the same approach on health care, climate and immigration policies.

When an audience member asked about his strategy to deal with the president, Schneiderman said he endeavors to stay off social media.

“I try not to get sucked into the latest nonsense on Twitter, but it’s hard, especially when the nonsense is about you,” Schneiderman said.

“The president has gone on Twitter rants calling me a sleazebag, a total lightweight, and a crook,” he said as he read a list of Trump's tweets about himself.