In a conversation at Harvard, the justice spoke of her despair at some of the court’s decisions, but she urged optimism and a focus on future generations. Some days, after Justice Sonia Sotomayor listens to the Supreme Court announce its decisions, she goes into her chambers, shuts the door and …