Health staff used a system designed for prioritising deportations when they were deciding whom to take action against for breaking Covid-19 rules.