Lawyers for an Islamic scholar and a Lebanese-born Palestinian computer programmer want US federal judges to determine whether evidence used against their clients was gathered by a secret domestic spying programme.