Judge accuses the Trump administration of ‘manufacturing’ chaos in migrant deportation case