A federal judge has struck down a Trump administration policy that could lead to the detention of tens of thousands of refugees who are lawfully in the U.S. but have not yet received permanent residency