The rescue ended an intensive effort by American intelligence officials to locate the couple — who had been taken hostage in October 2012 — and their children. When she and Mr. Boyle were kidnapped, Ms. Coleman was seven months pregnant; she gave birth four times in captivity.
The C.I.A. declined to comment. Trump administration officials cast the rescue as a win for Pakistan without publicly acknowledging that officials there had to be pressured into conducting the operation.
“This is a positive moment for our country’s relationship with Pakistan,” President Trump said in a statement.
Efforts to free the family had stalled repeatedly, and the family’s time as hostages was harsh. Mr. Boyle has said that his wife was raped and that the Taliban killed one of their children shortly after birth, an allegation the militants have denied.
In January 2016, the United States thought a deal had been struck with the Haqqanis, with help from Qatar, to release hostages. The F.B.I. and Army Rangers picked up Colin Rutherford, a Canadian being held by the Haqqanis, and American officials were hopeful that Ms. Coleman and her family might be next.
But the Haqqanis freed no one else. American officials said communications with the Haqqani network had gotten garbled, causing confusion, and the death of the leader of the Taliban, killed by a United States drone strike last year, also set back efforts to rescue the hostages. The diapers that F.B.I. agents in Afghanistan had bought for Ms. Coleman’s children would go unused.
Not only were hostages kept in captivity, the militants were also not done kidnapping. In August 2016, they seized an Australian, Timothy Weeks, and an American, Kevin King, 61, both teachers at the American University of Afghanistan in Kabul. Navy SEALs launched a rescue operation but came up empty; a tip about where the men were being held turned out to be outdated.
But last month, the American intelligence community caught a break. The C.I.A. had positioned the drone over a Haqqani encampment in the Kurram Valley, a region near Pakistan’s border with Afghanistan. It spotted the woman believed to be Ms. Coleman among the armed fighters.
The commandos of SEAL Team 6, tapped to rescue the family, started rehearsing. The raid was to take place not far from where the C.I.A. had originally spotted the family, according to one military official.
But the risky operation planned on Pakistani soil was…