Both Houses had a nominal Federalist majority .
Burr won in the Senate by a vote of 12 to 4 , and in the Assembly with a majority of 5 votes .
Although both Houses had a nominal Federalist majority , Burr won in the Senate by a vote of 12 to 4 , and in the Assembly with a majority of 5 votes .