Asylum seekers agree to leave Australian ship