Transfer of three people suspected of spying for Britain follows secret deal between two Islamist regimes