The NYT article tells us that Sotomayor's remarks were published in the Berkeley La Raza Law Journal and that she also said:
“Whether born from experience or inherent physiological or cultural differences,” she said, for jurists who are women and nonwhite, “our gender and national origins may and will make a difference in our judging.”...So has Donald Trump refrained from doing a disservice both to the law and society?
... Judge Sotomayor questioned whether achieving impartiality “is possible in all, or even, in most, cases.” She added, “And I wonder whether by ignoring our differences as women or men of color we do a disservice both to the law and society.”
She also approvingly quoted several law professors who said that “to judge is an exercise of power” and that “there is no objective stance but only a series of perspectives. Personal experiences affect the facts that judges choose to see,” she said.