2) is correct. If you want to compare only the two years then say "compare the birth rates in 2005 and 2009 (respectively). BTW, in the US it's usually "from 2000 through 2009" otherwise 2009 is not included.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.