An analysis of defense contracts charts the rise of defense spending — often in heavily Democratic districts