U.S. President Donald Trump signed Republicans' massive US$1.5 trillion tax overhaul into law on Friday, cementing the biggest legislative victory of his first year in office, and also approved a short-term spending bill that averts a possible government shutdown.

The two pieces of legislation represent Trump's most significant accomplishment with Congress since taking office in January, as well as a sign of what awaits when he returns from his Mar-a-Lago resort in Florida after the Christmas holiday.

The tax package, the largest such overhaul since the 1980s, slashes the corporate rate from 35 percent to 21 percent and temporarily reduces the tax burden for most individuals as well.

Democrats had opposed the bill as a giveaway to the wealthy that would add US$1.5 trillion to the US$20 trillion national debt during the next decade.

The spending bill extends federal funding through Jan 19, largely at current levels. It does nothing to resolve broader disputes over immigration, healthcare and military spending.

Republicans also are divided over whether to follow up their sweeping overhaul of the U.S. tax code with a dramatic restructuring of federal benefit programs.

House Speaker Paul Ryan has said he would like to revamp welfare and health programs but Senate Republican Leader Mitch McConnell told National Public Radio on Monday that he was not interested in cutting those programs without Democratic support.