The judge called the March 2022 lawsuit against Hillary Clinton and others “frivolous”.