WASHINGTON (AP) — Senate Republicans have passed the most sweeping rewrite of the nation’s tax laws in more than three decades, setting the stage for a final House vote Wednesday.

The House passed the bill earlier Tuesday. But the Senate had to make minor changes so the bill would comply with Senate budget rules.

READ MORE: Temple University Students, Faculty Have Mixed Feelings About Returning To In-Person Learning

The Senate vote was 51-48 on early Wednesday, with all Republicans in favor and all Democrats opposed.

Rewriting the tax code has been a longtime goal of Republicans and an effort championed by President Donald Trump.

READ MORE: Teenage Boy Shot 7 Times In West Philadelphia, Police Say

Democrats complain that the package is a giveaway to corporations and the rich.

The tax cuts total nearly $1.5 trillion over the next decade and would take effect in January. Workers would start to see changes in the amount of taxes withheld from their paychecks in February.

MORE NEWS: Man Shot 5 Times, Killed In North Philadelphia, Police Say

(Copyright 2017 by The Associated Press. All Rights Reserved.)