Trump's abrupt push upended a bipartisan funding deal negotiated with Democrats, forcing House Republican leaders to start over.