How did the battle influence the upcoming 1862 elections?