Government funding will run out Jan. 19 under a spending deal that also pushed thorny debates over immigration, ObamaCare and children’s health insurance into early 2018.

That could complicate the White House’s desire to get off to a running start on their priorities for next year: infrastructure and welfare reform.

Trump will need Democratic votes to pass almost all of those items, which could be even harder to come by with the midterm elections looming in November.

All of the fighting throughout the year has left Trump bruised, while putting the House and Senate majorities into play for Democrats.