The bill would revise several sentencing laws, retroactively limit the disparity in sentencing guidelines between crack and powder cocaine offenses and aims to lower recidivism rates. Its passage was a victory for President Trump and his son-in-law and adviser, Jared Kushner, who had pushed for the measure.

“I’m not one of these big ego legacy guys. I like to think that I took the opportunity I was given and made a positive difference in people’s lives,” Speaker Paul D. Ryan said of his congressional tenure.

Lawmakers described a facility jam-packed with families, lacking sufficient medical care and poorly equipped to care for children. “The only reason this facility is still open as it is now is because these cameras can’t get in,” Rep. Al Green (D-Tex.) told reporters.