US President Donald Trump on Wednesday night signed into law a bipartisan funding bill to reopen the federal government, officially ending the 43-day shutdown — the longest in the country''s history.