Judge vacates administrations policies, finding actions of ICE and another government arm ‘arbitrary and capricious’