As officials at the Treasury Department raced on Friday to draft legislative language for an ambitious plan for the government to buy billions of dollars of illiquid debt from ailing American financial institutions, legislators on Capitol Hill said they planned to work through the weekend reviewing the proposal and making efforts to bring a package of measures to the floor of the House and Senate by the end of next week.

Lawmakers in both parties described the meeting in Ms. Pelosi’s office on Thursday night with Mr. Paulson and Mr. Bernanke as collaborative, and that they were prepared to put politics aside to address the needs of the American people.

While Democrats initially said after the meeting that they planned to use the administration’s proposal of a huge rescue effort to win support for an economic stimulus package, they pulled back slightly on Friday morning, saying that their top priority was to help put together the bailout package and stabilize the economy.

But it was clear they continued to examine ways to make clear that the government was stepping up not just to help the major financial firms but also to protect the interests of American taxpayers and families by safeguarding their pensions and college savings, and by preventing any further drying up of consumer credit.

In addition to potential stimulus measures, which could include an extension of unemployment benefits and spending on public infrastructure projects, Democrats said they intended to consider measures to help stem home foreclosures and stabilize real estate values.

Among the potential steps Congress can take include approving legislation to allow bankruptcy judges to modify the terms of primary mortgages  authority that the bankruptcy laws do not currently allow and that the banking industry has strenuously opposed.

But the Democrats said it was too soon to discuss such details, and that they were awaiting a draft of the proposal from the Treasury Department.