A federal judge on Friday ordered a mental health evaluation for a man arrested after an explosive went off in a courthouse lobby that injured five people and who officials say had told law enforcement he had planned to kill deputies and a judge in the building.