A federal judge authorized funding for the testing but said she lacked authority to order prison transportation.