President Donald Trump late Wednesday night signed a funding bill that will end the longest government shutdown in U.S. history.