The move, which was initiated by City Councilman Keiffer J. Mitchell Jr., approved by the council and supported by Mayor Martin O'Malley, struck like a thunderbolt in Annapolis, where legislation calling for a virtual state takeover of the schools was about to be introduced.
Soon after the council vote, Sen. Nathaniel J. McFadden, chairman of the city Senate delegation and a school system employee, rose on the floor of the Senate to tell his colleagues that the city would not be seeking a state loan.
"We are not saying we have all the money that we need, and we are not saying that we don't need the state," McFadden said. "But we are saying that the solution to the problems of Baltimore city starts with Baltimore City."
To the governor, the Senate president and speaker, he said, "Thank you, thank you from the bottom of our hearts. Pray for us as we go forward."
The announcement inspired an air of giddiness in Annapolis, where lawmakers seemed excited to get the issue off their plates. After his speech, McFadden exchanged high-fives with the chairman and vice chairman of the Budget and Taxation Committee.
In an extraordinary legislative twist, the City Council took up a bill that would have lent the city schools $8 million and, with no public notice, amended it, transforming it into a $42 million loan. The council approved the bill with one dissenting vote.
The city loan, which requires approval from the city's Board of Estimates, would eliminate the need for a state loan that came with a requirement for the city to cede more control to the state. Even more objectionable for many city leaders, it would have given the state the power to break the teachers' contract after this school year.
"Tell the state, 'We will take care of this. Thanks for the offer,'" Mitchell said.
O'Malley agreed, said spokesman Stephen Kearney.
"After a weekend of reflection and weeks of conferring with his finance staff, the mayor determined we can best solve the school's financial problems by taking more responsibility, not less," Kearney said.
Bonnie S. Copeland, the school system's chief exceutive officer, said yesterday that she had learned about the City Council loan offer too late in the evening to have had time to consider it.
"We really can't comment one way or the other on whether or not this is a viable option for the school system," Copeland said.
The city loan would negate a solution hashed out in weeks of politically charged negotiations between Ehrlich and O'Malley, considered likely rivals in the 2006 governor's race.
Mitchell's plan, which would substantially drain the city's rainy day fund, could go before the Board of Estimates as early as tomorrow.
Earlier in the evening, Kearney described the council's move as a backup plan to keep the schools afloat in case legislators in Annapolis rejected the state loan legislation, which was to be submitted yesterday.
"We're just planning for every possibility," Kearney said.
Senate President Thomas V. Mike Miller said he decided against introducing the state legislation last night after discussing the issue with O'Malley.
"We were told that the mayor did not need the bill," Miller said.
The school system, which has a $58 million deficit and a separate $58 million cash-flow shortfall, would be insolvent and unable to meet its payroll by the end of the month without emergency loans, school officials have said.
After weeks of tense negotiations, Ehrlich and O'Malley agreed to a plan that would have given the schools enough cash to make it through the end of the budget year. Under that plan, the schools would have received a $42 million loan from the state, an $8 million loan from the city and another $8 million from Baltimore's Abell Foundation.
Baltimore ceded partial control of city schools to the state in 1997. The latest state bailout would have relegated the city to "junior partner" status for the next two years, O'Malley said last week.
Under Mitchell's plan, the schools would continue to be operated under a city-state partnership, but the state would not gain authority, as it would have under the state plan, to break the teachers' contract after the end of the school year.
City financial officials scrambled yesterday to determine the effect of the loan on the city's bond rating, ultimately deciding that it would not be a problem.
The city loan would make a substantial dent in Baltimore's $56.2 million rainy day fund, leaving $14.2 million for an emergency. That is far less than financial experts who rate the city's bonds recommend keeping in reserve.
The city's bond rating would not be hurt because the schools would pay back $34 million of the loan within 90 days, Mitchell said, at the start of the new fiscal year July 1.
The remaining $8 million would be due in June 2006, the same as under the plan negotiated with the state.
Under Mitchell's plan, the schools would receive $42 million from the city and $8 million from the Abell Foundation, a total of $50 million. The state plan would have provided $58 million. But the city plan would provide enough money because the schools' financial problems are not as severe as was first thought, Mitchell said.
Miller had a different explanation. He said Abell had increased its loan to $16 million to cover the difference. That could not be confirmed last night.
The only vote against the plan was cast by Councilman Nicholas C. D'Adamo Jr., chairman of the city's Budget and Appropriations Committee and an Ehrlich appointee to a job with the state police. He said he doubts whether the schools would repay the loan.
"This could backfire," he said. "I hate to see us lose that" money.
Sun staff writers Tanika White and Howard Libit contributed to this article.