Trump’s order is likely to face legal challenges, given that the Constitution gives authority over elections to the states.