The judge, Margaret Garnett of Federal District Court, said the case against Luigi Mangione would still proceed to trial on other counts.