If the Wikipedia is right, he apparently wanted to prevent them from forming families - that'll make some enemies. "...While he was a judge on the Fifth Circuit, Duncan refused to identify a transgender defendant by their assumed name..." shows the heckling isn't exactly disccordant with his conduct as a judge.
I’m sure his politics don’t align with everyone’s, especially Stanford students. But if you invite a judge to give a lecture to a bunch of law students and they disagree - there’s a much better way to show the disagreement.