A government shutdown has officially been averted, as President Donald Trump signs the continuing resolution into law.