A 13-year-old girl was unlawfully held in San Francisco’s juvenile hall for 11 days in February, despite a judge’s order that she be released, according to a federal lawsuit.