Though not openly political, the president's visit helped to emphasise the influence of his Democratic agenda in a perennial swing state with one of the most difficult Senate races that might determine whether Democrats retain control of the chamber.