A suburban Chicago man is in federal custody after authorities said he posted an online threat to President Donald Trump.