BROWNSVILLE, Texas—Inside a converted Walmart Supercenter about 6 miles from the U.S. border with Mexico, nearly 1,500 young immigrant boys have found their first home in the U.S.

The shelter for immigrant youth in the corner of South Texas opened last year with a capacity of about 1,200. It expanded last month and had fewer than 50 beds to spare on Wednesday afternoon.

For...