James Packer agrees deal to retain his large stake in Crown Resorts Limited