The secretary of state became the first sitting Cabinet member to take the witness stand in a criminal case in more than 40 years.