WASHINGTON—The U.S. handed over to Iraqi Kurds a woman prisoner who officials said provided valuable intelligence about the inner workings of Islamic State.

The woman, known as Umm Sayyaf, was detained following a dramatic raid by U.S. commandos in eastern Syria in May, in which her husband—Islamic State operative Abu Sayyaf—was killed.

She...