An executive order that President Donald Trump issued last week to regulate elections faces an uphill legal battle.