WASHINGTON — The House of Representatives on Wednesday passed a bill to fund the government into January and end the longest shutdown in U.S. history.

The bill passed on a mostly party-line vote of 222 to 209, with six Democrats in favor and two Republicans opposed.

President Donald Trump later signed the legislation in the Oval Office, paving the way for federal workers to get paid and millions of Americans to receive a monthly federal food benefit payment that was delayed by the shutdown.

And Democrats in Congress will get basically nothing.

The shutdown started last month after Senate Democrats refused to vote for a basic funding bill, demanding Republicans agree to address expiring health insurance subsidies. Republicans said no, offering only the promise of a Senate vote that will almost certainly fail.