Giuliani agrees to deal to end bankruptcy that could lead to sale of...