A Massachusetts federal judge on Friday ordered the U.S. Department of Homeland Security to provide due process protections for immigrants facing deportation to countries where they have no prior ties, saying they must receive written notice and a meaningful opportunity to raise concerns about their safety.