Failure to pass the temporary spending measure would trigger a government shutdown at midnight Friday, which would amount to a political pratfall just after the GOP scored a major win on the landmark tax bill.