US Supreme Court judge Ginsburg undergoes surgery for pancreatic cancer