Legislation to avoid a U.S. government shutdown on the midnight of Friday advanced in Congress as the House of Representatives on Thursday night approved an extension of federal funds through Feb. 16, although the bill faced uncertain prospects in the Senate.

On a mostly partisan vote of 230-197, the Republican-controlled House approved the stopgap funds, sending the bill to the Senate for consideration before the looming deadline and as President Donald Trump pushed hard for a measure he can sign.

But a mix of Democrats and Republicans in the Senate who oppose the House bill for varying reasons left the measure in a precarious spot.