The Trump administration had vowed to fight a judge’s decision to dismiss unrelated criminal charges against James Comey, the former F.B.I. director, and Letitia James, the attorney general of New York.