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.