Portugal has agreed with France and Spain to receive 10 of 58 migrants from the rescue ship Aquarius 2, which is in the Mediterranean waiting to dock.