Overdoses, bedsores, broken bones: What happened when a private-equity firm sought to care for society’s most vulnerable.