Mr Justice Foskett, sitting at the High Court in London today, said that "characterising such a scheme as involving or being analogous to 'slavery' or 'forced labour' seems to me to be a long way from contemporary thinking".
He said that both of the claimants were entitled to a declaration that there had been breaches of the 2011 jobseeker's allowance regulations in their cases.
But he ruled that the mistakes did not invalidate the 2011 jobseeker's allowance regulations, nor did they breach human rights laws banning slavery.
More top news
The death toll is up by 367 from 1,284 on Monday.
The extension will apply to around 2,800 migrant health professionals who are working for the NHS and have work visas due to expire.
Figures from the Office for National Statistics have been different to those reported by NHS England and Public Health Wales.