Story highlights Both chambers passed both a plan to avert a shutdown

President Donald Trump tweeted Thursday morning on shutdown negotiations

(CNN) The Senate approved a short-term spending measure Thursday night to keep the government open through January 19, avoiding a government shutdown ahead of a Friday deadline.

Along with funding the government for nearly a month, the bill extends funding for the Children's Health Insurance Program through March and includes a three-week extension of a government surveillance program.

The House approved the measure earlier Thursday by 231-188.

Immediately after the vote, the House also passed an $81 billion disaster aid bill in the wake of this year's devastating hurricanes and wildfires. The bill includes additional money for hurricane recovery in Texas, Florida, Puerto Rico and the US Virgin Islands, along with fires that affected California. It passed the House 251-169, but it's not expected to be taken up in the Senate until after the new year.

Republican leaders had appeared at an impasse over the spending bill just hours before the House voted, though signs of progress toward a resolution began to emerge throughout the day. House Armed Services Chairman Mac Thornberry, a Texas Republican who demanded for weeks that the Pentagon needed a full year spending bill with added resources, told reporters Thursday that he would now vote for a stopgap bill to extend current levels until mid-January and he believes it will pass.

Read More