US District Judge J. Campbell Barker ruled on Thursday that the federal Centres for Disease Control and Prevention had breached the constitution by enforcing a moratorium on evictions announced by the former US president, Donald Trump, last year.