Lawyers for detainees held at Guan­tanamo Bay, Cuba, say a new search policy adopted earlier this year put their clients in an impossible situation: submit to religiously and culturally offensive groin-area frisks, or forgo meeting with attorneys.

A federal trial judge blocked the new policy in July, finding it violated the detainees’ right to communicate with their lawyers. The U.S. Court of Appeals for the D.C. Circuit is set to hear arguments this month on whether the judge had authority to forbid the searches.