President Donald Trump signed a bill on Tuesday to end the partial government shutdown after the House passed the budget measure hours earlier.