NBC: Trump signs funding bill to avert a government shutdown