The order prevents Justice Department and Department of Homeland Security from threatening election officials with criminal prosecution or taking other actions.