Trump signs a funding bill that ends the record 43-day government shutdown after weeks of political deadlock.