Nearly a decade ago, when his show “Ally McBeal” was at its peak, lawyer-turned-Hollywood-producer David E. Kelley was invited to dinner at the home of then-Supreme Court Justice Sandra Day O’Connor.

There, Kelley recalls, he got to chat with four or five justices along with other D.C. luminaries.