WASHINGTON — The Senate confirmed Gina Haspel on Thursday as the first female director of the CIA following a difficult nomination process that reopened an emotional debate about brutal interrogation techniques in one of the darkest chapters in the spy agency’s history. The 54-45 vote split both parties, with six Democrats joining most Republicans in support.