The third-term president has used his experience and personal relationships with lawmakers to build the majorities that now support his agenda.