A Pennsylvania man accused of threatening President Donald Trump and law enforcement officials has been ordered to remain detained pending a trial.