Judge dismisses lawsuit to keep former President Trump off NH primary ballot