A federal judge who was reprimanded for having a yearslong affair with a police commander in her court chambers, among other ethical lapses, wrote a second round of apology letters to her former clerks this week, saying her “offensive conduct” was “patently wrong.”