Analysts were also turning up surprises in the fine print.

One provision, which was sought by the student lending industry and went unmentioned in early Congressional summaries of the stimulus package, would temporarily increase subsidies to banks in the guaranteed student loan program by tying them to a new index, partly because recent federal intervention in the credit markets has invalidated the previous index. A spokesman for Sallie Mae, one of the largest student lenders, said the change was needed to keep student loan markets fluid. Critics said it represented a potential new windfall for lenders.

“This just continues the well-established tradition of welfare for the student loan industry,” said Barmak Nassirian, an expert in student lending.

The formulas by which the stimulus money for public schools would be allocated to states and local districts are complex, but take into consideration numbers of school-age children in poor families. The level received per student would vary considerably by state, according to an analysis by the New America Foundation, a research group that monitors education spending. New York would be among the biggest beneficiaries, at $760 per student, while New Jersey and Connecticut would fall near the bottom, with $427 and $409 per student, respectively. The District of Columbia would get the most per student, $1,289, according to the foundation’s analysis.

The foundation contends, however, that the formula does not effectively allocate the most money to states with the greatest need.

In recent years the federal government has contributed 9 percent of the nation’s total spending on public schools, with states and local districts financing the rest. Washington has contributed 19 percent of spending on higher education. The stimulus package would raise those federal proportions significantly.

The Department of Education’s discretionary budget for the 2008 fiscal year was about $60 billion. The stimulus bill would raise that to about $135 billion this year, and to about $146 billion in 2010. Other federal agencies would administer about $20 billion in additional education-related spending.

“This really marks a new era in federal education spending,” said Edward Kealy, executive director of the Committee for Education Funding, a coalition of 90 education groups.