Asylum seekers win High Court case against Home Office over being kept in barracks ‘reminiscent of detention centre’