US court decision on terror detainees sets 'dangerous precedent', UN rights expert