Chief Administrative Judge Lawrence K. Marks, second in command of the New York court system, is retiring at month's end—just three months after Chief Judge Janet DiFiore retired.