The House has passed a bill to end the partial government shutdown cleared by a bipartisan vote under the insistence of President Donald Trump.