Rudolph W. Giuliani told a grand jury that his former chief investigator remembered having briefed him on some aspects of Bernard B. Kerik’s relationship with a company suspected of ties to organized crime before Mr. Kerik’s appointment as New York City police commissioner, according to court records.