WASHINGTON — The House, forced to vote a second time on the $1.5 trillion tax bill, moved swiftly to pass the final version on Wednesday, clearing the way for President Trump to sign into law the most sweeping tax overhaul in decades.

House lawmakers approved the tax bill 224 to 201 on Wednesday, after being forced to vote on the bill again after last-minute revisions were made to it in the Senate, which passed the measure 51 to 48 early Wednesday morning.

The final House vote was essentially a formality, as the changes, which were made to comply with Senate budget rules, did not significantly alter the overall bill. But the need for a second vote gave ammunition to Democrats, who had already accused Republicans of trying to rush the tax overhaul through the House and Senate.