Rudy Giuliani agrees to last-minute deal to end bankruptcy case, pay...