A federal judge on Thursday temporarily barred the Department of Health and Human Services from terminating a variety of public health funds that had been allocated to states during the Covid-19 pandemic, finding that the move had left those states stranded and unable to provide critical health services.