Federal courts have largely afforded President Trump broader executive authority, except on the question of managing elections.