A Massachusetts federal judge said Thursday he expects to issue a ruling that would require the U.S. Department of Homeland Security to afford greater due process protections to immigrants who the government seeks to deport to countries where they have no ties but could face torture or death, calling the current procedures “troubling.”