A look back at a divisive campaign and a narrow victory.