A retired teacher has pleaded guilty to threatening in obscenity-filled voicemails to harm a federal judge in Florida who had rejected a challenge to the state’s so-called “don’t say gay” law restricting classroom discussion of sexual orientation and gender identity.