A Norwegian cargo boat carrying hundreds of refugees lay at anchor off a remote Australian island.