How did Thomas Jefferson fare in keeping true to his beliefs when they came into conflict with political realities as president?