The judge ruled that the scope of the mandate was beyond the CDC’s legal purview.