The Trump administration “unquestionably” violated a court order when it tried to transfer detainees to war-torn South Sudan without a meaningful opportunity to contest their removal to a place where they might face torture, a federal judge said Wednesday.