A veteran federal judge in Manhattan shares guidance for new generations of attorneys—including the importance of acting “grown up.”