President Bush won the state in the 2000 general election , but Democrat John Kerry narrowly captured it in 2004 , and Democrats took control of the state Legislature and both congressional seats in 2006 .