US President Donald Trump signed a funding bill in Washington DC to end the longest government shutdown.