The original agreement, which has been criticized by President-elect Donald Trump, would have kept the government open until March.