The bill would fund ICE and Border Patrol through the rest of Trump's term, handing the Republican leader a major victory on one of his signature issues.