The Democrats, whose national convention begins in two weeks, are working hard to shore themselves up in an expanding number of swing states.