Deal reached on NSW koala management rules