(Updates with vote on proposed changes, paragraph 6)
By Maria Carolina Marcello and Alonso Soto
BRASILIA, Oct 10 (Reuters) - Brazil's lower house of Congress approved a landmark proposal to cap public spending in a first-round vote on Monday, a major victory for President Michel Temer's efforts to regain market confidence and pull the economy out of its worst recession ever.
After nine hours, lawmakers approved the measure 366-111, well above the 308 votes or three-fifths majority needed for passage. The constitutional amendment that limits spending growth to inflation still needs another super-majority vote in the lower house and two in the Senate for final approval.
The overwhelming support for the proposal will likely add momentum to Temer's austerity agenda that aims to close a budget deficit on track to surpass 10 percent of the gross domestic product this year.
The vote was Temer's biggest victory in Congress since he took the presidency in May amid a political crisis that toppled his predecessor and former running mate Dilma Rousseff.
"This is a clear sign of Congress' commitment to rebalance the fiscal account and rescue fiscal responsibility," Temer's spokesman, Alexandre Parola, told reporters soon after the tense vote, in which opposing lawmakers exchanged insults and threats.
The lower house rejected all eight opposition proposals to change the amendment, keeping the test intact.
An experienced former lawmaker, Temer has blamed Rousseff for the years of overspending that eroded the fiscal accounts and cost Brazil its coveted investment-grade rating last year.
Temer has promised to shore up the public accounts to breathe new life into the $2 trillion economy now in its second year of a recession that has cost 12 million Brazilian jobs.
Brazil's stocks, bonds and currency have rallied this year on expectations that Temer would be able to rebalance the country's dire finances.
Still, most analysts agree that Temer needs to raise taxes and push ahead with other unpopular economic reforms to stave off a full blown fiscal crisis.
His administration has vowed to submit in October an amendment to reduce the expensive benefits in one of the world's most generous pension systems.
CONTROVERSIAL CAP
Although the spending cap would mark a sea change for a country used to spending lavishly on public servants and industrial incentives, it has also raised fears of cuts to spending on health, education and corruption investigations.
The opposition and powerful civil servant unions have called to strike down the measure that would impose wage freezes and other penalties on branches of the federal government that breach the spending ceiling.