The judge 's order last month was part of a ruling issued in favor of the Associated Press , which filed a lawsuit to obtain the transcripts to determine whether detainees had been properly classified as enemy combatants .