The 17th U.S. president was a cracker-barrel orator who defied the partisan labels of his time—and stepped right into a trap set by his congressional foes