Laura Taylor Swain, a federal judge, seized control of New York City’s lockups, which have been rife with violence and dysfunction.