Danish law passed to allow offshore asylum centres