The House of Representatives has passed a supplemental border security package funding 2,000 new agents and expanded detention capacity, with President Trump signaling he will sign the measure into law immediately.