The federal gov't injecting a few billion dollars into an economy can't hurt. So, yeah, I'm sure it helps stimulate the growth here.
But, I rarely find many, if any, gov't contractors at the HN meetups in DC.
There are actually a lot of startups here, and lots of VC money, in general. A lot of people come here to live, and work from home, here. Housing prices and costs of living are high, but not as high as some other locations (SF, NY, etc.).
So, definitely other factors, too.