The original sentence is in the Active Voice and the Past Perfect Tense (had given).
Active Sentence Structure: Subject (They) + Verb (had given) + Indirect Object (the students) + Direct Object (detailed instructions).
To convert to the Passive Voice, we can make one of the objects the new subject. The verb form for the past perfect passive is had been + past participle.
Let's make the students the new subject.
New Subject (The students) + Verb (had been given) + Direct Object (detailed instructions).
The resulting sentence is: The students had been given detailed instructions.
This matches option (D). Option (A) is past continuous passive, (B) is present perfect passive, and (C) is simple past passive. They do not match the original tense.