US President Donald Trump signed the bill ending the record 43-day US government shutdown and resuming federal operations.