Clerk admits to sending sex texts to judge