House passes emergency border funding, Trump threatens veto