Justice Ruth Bader Ginsburg on Tuesday was hospitalized for treatment of a possible infection, according to a spokesperson for the U.S. Supreme Court.

The 87-year-old justice was admitted in the morning to the Johns Hopkins Hospital in Baltimore. She was initially evaluated at Sibley Memorial Hospital in Washington, D.C., after experiencing fever and chills, according to the court.

At Hopkins, the justice underwent an endoscopic procedure in the afternoon to clean out a bile duct stent that was placed last August. The court, in a statement, said the justice was resting comfortably and was expected to remain in the hospital for a few days while she received intravenous antibiotic treatment.

Her admittance to Hopkins was her second time in two months. In May, she entered the hospital for treatment for acute cholecystitis, a benign gallbladder condition. While there, she participated in the court's historic virus-era telephonic arguments from her hospital bed.

Ginsburg has been treated in the past for lung, early-stage pancreatic and colon cancer. Last November, Ginsburg was briefly hospitalized after experiencing fever and chills. Her symptoms then abated with intravenous antibiotics and fluids.