The private-equity billionaire spent decades building influence in the capital. Then his philanthropy collided with the president.