* Twenty Republicans vote against budget resolution
* Deduction for state and local taxes becomes flashpoint
* Lawmaker says tax cut bill to be introduced on Nov. 1 (Adds timetable for legislation, deficit details)
WASHINGTON, Oct 26 (Reuters) - The U.S. House of Representatives helped pave the way on Thursday for deep tax cuts sought by President Donald Trump and Republican leaders, but barely overcame a revolt within party ranks that could foreshadow trouble ahead for the tax overhaul.
The Republican-controlled House voted 216-212 to pass a budget blueprint for the 2018 fiscal year. The measure will enable the tax legislation, due to be introduced next week, to win congressional approval without any Democratic votes.
But House Republican leaders came within two votes of failure. Democrats were unified in their opposition, and 20 Republicans voted against the bill, many to express disapproval of a provision in Trump's tax outline that would repeal an income tax deduction for state and local taxes.
Discord is also looming over a potential provision to scale back a popular tax-deferred U.S. retirement savings program. Both those provisions are aimed at offsetting revenue losses that would result from the planned sweeping tax cuts, particularly for companies.
Democrats have called the tax plan a giveaway to the rich and corporations that would swell the federal deficit.
Republicans are traditionally opposed to letting the deficit grow. But in a stark reversal of that stance, the party's budget resolution, previously passed by the Senate, called for adding up to $1.5 trillion to federal deficits over the next decade to pay for the tax cuts.
The outline of the Republican plan announced last month would cut the corporate tax rate to 20 percent from 35 percent, the small business rate to 25 percent from up to 39.6 percent and the top individual rate to 35 percent from 39.6 percent.
Trump, who promised major tax cuts as a candidate last year, has asked Congress to pass the tax legislation by the end of the year. Even though his fellow Republicans control both the House and Senate, the president has been unable to secure passage of major legislation, having failed to secure a promised repeal of the Obamacare law.
Republicans are also looking for a signature achievement to tout as the 2018 congressional election year approaches.
"Big News - Budget just passed!" Trump wrote on Twitter.
Republican House Speaker Paul Ryan, who has said he wants the House to pass the tax overhaul by the Nov. 23 Thanksgiving holiday, said passage of the budget resolution was an "enormous step" toward that goal.
But he declined to take a position on the possibility of capping annual contributions into 401(k) plans, which for four decades have helped millions of Americans save for retirement by offering tax savings.
Trump and Kevin Brady, the Republican chairman of the tax-writing House Ways and Means committee, reopened the door to the possibility of such caps on Wednesday as Republicans scramble to find sources of revenue to cover the tax cuts.
Brady said he planned to introduce the tax bill next Wednesday and to begin committee deliberations on it the following week, on Nov. 6.
REVOLT FROM HIGH-TAX STATES
A meeting after the budget vote between Brady and Republicans opposing the elimination of the deduction for state and local taxes ended without a compromise, though Brady said he would work to find a solution.
"They made it clear. They need this problem solved before they vote 'yes' on tax reform," Brady added.
Eliminating the deduction would hit middle-class voters in high-tax states like California, New York, Illinois, Pennsylvania and New Jersey.
Republican Representative John Katko of New York, leaving the meeting with Brady, said supporters of the deduction "stood firm, saying no as a group today to let them know we're not kidding, and we also are going to let the Senate know if they try and take it (the deduction) out, they're going to have a problem."
The budget plan passed on Thursday will enable the 100-seat Senate to pass tax legislation with a simple majority rather than a 60-vote super-majority that would be tough to reach given solid Democratic opposition. While Republicans hold a comfortable majority in the House they have just a 52-48 margin in the Senate.
The White House and congressional Republicans excluded Democrats as they developed the plan, and it appeared unlikely a significant number of Democrats would get behind the proposal.
"Right here before our eyes, in this House, the Republicans are replacing the great American ladders of opportunity with the silver spoon of plutocracy and aristocracy. Their agenda raises taxes on the middle class. That is the fact," top House Democrat Nancy Pelosi said during the debate on the budget measure.
Independent analysts forecast last month that corporations and the wealthiest Americans would benefit the most and many upper middle-income people would face higher taxes under the tax outline unveiled by the Republicans.
The proposal would cut taxes for companies and individuals by up to $6 trillion over the next decade, the analysts said.
(Reporting by David Morgan and Susan Cornwell; Additional reporting by Richard Cowan and Amanda Becker; Writing by Will Dunham; Editing by Frances Kerry)