An Italian court has ordered that dozens of migrants taken to Albania must be transferred to Italy in the latest setback for Rome's controversial plan to deter people from arriving by sea.