NEW DELHI – President Donald Trump suggested Tuesday that two liberal Supreme Court justices should recuse themselves from any cases involving his administration because of their statements about him and a Supreme Court dissent Trump viewed as critical of him.

The president posted a tweet Monday in which he accused Justices Ruth Bader Ginsburg and Sonia Sotomayor of bias against him.

“It’s very obvious,” Trump said at a news conference in India, where he was wrapping up a 36-hour trip. “Justice Ginsburg should [recuse herself] because she went wild during the campaign when I was running."

"Perhaps she was for Hillary Clinton,” Trump said.

“I just don’t know how they cannot recuse themselves from anything having to do with Trump or Trump-related,” the president said. He said Sotomayor – who was appointed by President Barack Obama – is “trying to shame people with perhaps a different view.”

Quoting Fox News host Laura Ingraham in a tweet Monday evening, Trump said Sotomayor accused Republican-appointed Supreme Court justices of "being biased in favor of Trump."

"This is a terrible thing to say. Trying to 'shame' some into voting her way?" Trump wrote, recalling Ginsburg's criticism of him as a "faker" when he ran for president.

Coronavirus:White House requests $2.5 billion for coronavirus, Dems say that's 'woefully insufficient'

South Carolina Democratic debate:How to watch, who has made the stage and what to expect

The dissent that drew the ire of Trump and other conservatives involved a Supreme Court case about the legality of the Trump administration's "public charge" rule. The Department of Homeland Security rule would allow the government to bar documented immigrants from residency or green cards if they receive or are deemed likely to need noncash benefits, such as food stamps, Medicaid or housing vouchers, for more than a year.

Friday, the court lifted a lower court's injunction to block the rule's implementation in Illinois. In her dissent on that ruling, Sotomayor blasted the court's conservatives and their deference to the government in similar arguments.

Sotomayor's dissent does not single out Trump or his administration but refers to her concerns about the government's applications for stays. The government's request to halt the lower court's block on the policy, she wrote, upends "the normal appellate process, putting a thumb on the scale in favor of the party that won a stay."

Supreme Court justices choose when to recuse themselves from deciding a case. They generally do it only if they have a financial stake or personal connection or have been involved as a judge or lawyer during an earlier stage of the litigation.

Trump's attacks on the two liberal justices recalled efforts by liberal interest groups to target conservative justices, including Brett Kavanaugh and Clarence Thomas.

Before he was nominated to the court by Trump, Kavanaugh was accused of sexual misconduct in the 1980s, which he denied. During his Senate confirmation hearings in 2018, Kavanaugh denounced what he called a "calculated and orchestrated political hit, fueled with apparent pent-up anger about President Trump and the 2016 election, fear that has been unfairly stoked about my judicial record, revenge on behalf of the Clintons and millions of dollars in money from outside left-wing opposition groups."

Harvard Law School professor Laurence Tribe wrote in The New York Timesthat the newest justice should recuse himself from "cases involving individuals or groups that Judge Kavanaugh has now singled out, under oath and in front of the entire nation, as implacable adversaries." Kavanaugh has not done so.

Thomas' wife, Virginia, and other conservatives met with Trump at the White House to discuss administration appointments. Axios reported this week that she has been among those advising the president on disloyal aides to oust and others to replace them. Justice Thomas has declined to recuse himself from cases involving issues his wife champions.

Contributing: Richard Wolf