The deal negated the need for a trial that was supposed to begin Thursday morning at a federal court in Manhattan, where Giuliani was scheduled to be the first witness.