Judge who overturned Epping migrant hotel ban ran socialist think tank & was ‘Labour member for 28 years’