Lobbying, political donations and old-fashioned friendships went into persuading the famously sober president.