Updated

Supreme Court Justice Ruth Bader Ginsburg was hospitalized with an infection caused by a gallstone, the court announced Tuesday, adding that she's expected to remain in the hospital for a "day or two."

Ginsburg, 87, underwent non-surgical treatment for acute cholecystitis, a benign gallbladder condition, at Johns Hopkins Hospital in Baltimore on Tuesday.

The justice had undergone outpatient tests at Sibley Memorial Hospital in Washington, D.C., Monday following oral arguments with the court, which confirmed that she had a gallstone blocking her cystic duct, resulting in an infection.

THOMAS AN ACTIVE QUESTIONER AGAIN AS SUPREME COURT HOLDS TELECONFERENCE ARGUMENTS IN HIV/AIDS FUNDING CASE

"The justice is resting comfortably and plans to participate in the oral argument teleconference tomorrow morning remotely from the hospital," the Supreme Court said in a statement.

Wednesday's case -- set to be argued via teleconference due to the coronavirus -- has involved a lengthy battle spanning eight years with the Little Sisters of the Poor, a religious group serving the poor and elderly. All justices are participating via phone, so Ginsburg should have no impediments to staying involved in the case.

Ginsburg has faced a slew of hurdles concerning her health, fueling speculation that her possible exit from the court could provide an opportunity for President Trump to appoint a third justice to the bench. However, she consistently has slapped down any notion that her departure from the nation's highest court was imminent, insisting that she'd like to remain on the bench until she's 90 years old.

Ginsburg has also had several bouts with cancer in the past, including colorectal, pancreatic and lung cancer.

CLICK HERE TO GET THE FOX NEWS APP

The Little Sisters of the Poor have been pushing back against an Obama administration mandate under the Affordable Care Act requiring employers to provide employees with health insurance which could be used to cover birth control. Houses of worship and their integrated auxiliaries were exempt, but the Little Sisters of the Poor did not fall under that bracket.

Pennsylvania and New Jersey were suing the federal government to stop the group from opting out, an exemption that the Trump administration had granted.

Fox News' Shannon Bream contributed to this report.