A federal appeals court ruled Tuesday that a lawsuit brought by five men who say they were tortured as part of the “extraordinary rendition” program can proceed.