The court’s order followed a broader one last month allowing removals to countries with which migrants have no connections.