What century is it again? Interracial Couple is Denied Wedding

The best part of the story is the legality of the justice of the peace refusing to perform the marriage on grounds of race. I understand that JoPs must necessarily maintain authority over what ceremonies they officiate, but how is there no qualification on what are acceptable grounds for refusal?