The federal government’s reported plan to imminently deport migrants to Libya “would clearly violate” a court order requiring that the U.S. Department of Homeland Security provide due process protections for immigrants facing deportation to countries where they have no prior ties, a Massachusetts federal judge ruled Wednesday.