Justice Ruth Bader Ginsburg, who had surgery for pancreatic cancer less than three weeks ago, asked vigorous questions in the two arguments heard by the Supreme Court on Monday.