A federal judge ruled yesterday that three detainees at a U.S. military prison in Afghanistan may challenge their confinement before a U.S. court, handing the Obama administration one of its first legal defeats on a claim of executive power. -