President Donald Trump signed a temporary government funding bill into law on Saturday, preventing a potential shutdown.