The bill was supported by conservatives who demanded it as their price for backing a separate measure dealing with the crisis of unaccompanied minors flooding the border.