Neither the trial judge nor the reviewing appellate court had any trouble dismissing the claim by New Hampshire 's attorney general , Kelly Ayotte , that the state had covered the problem of the health exception by giving a pregnant minor the option of seeking permission for an abortion from a judge .