President Trump signed legislation Wednesday evening to end the federal shutdown after a record-long 43-day stoppage.