An Italian court has ruled that seven men detained in a migration hub in Albania will have to be transferred back to Italy.