Two girls who were passed between men in a grooming gang for sex were treated as “authoresses of their own misfortune” by police and social services, a judge said, as he jailed three of those involved.