US jails struggle with role as makeshift asylums