Justice Ginsburg and Justice Scalia were close friends, even though they were rivals on the Supreme Court.