Federal judges have varied their commutes, hired private security and fortified their homes, including with panic buttons, amid a barrage of threats and harassment in recent months that has left many of them anxious about their safety, according to two new studies.