President Trump signed the bill ending the shutdown after 43 days, after the House approved it, largely on party lines.