Justice Ginsburg, who holds a critical liberal seat on the Supreme Court, underwent treatment for pancreatic cancer.