U.S. President Donald Trump signed a bipartisan spending bill to end a four-day partial federal government shutdown.