House Speaker Nancy Pelosi announced the $700 billion accord just after midnight but said it still has to be put on paper.
"We've still got more to do to finalize it, but I think we're there," said Treasury Secretary Henry Paulson, who also participated in the negotiations in the Capitol.
"We worked out everything," said Sen. Judd Gregg, R-N.H., the chief Senate Republican in the talks.