Unless the law states he cannot recuse himself, he has the right to do so. Interracial marriages aren’t as problematic as they have been in the past, but that doesn’t mean his observations aren’t still true for his region. He gave them another JP’s name and didn’t try to prevent their marriage altogether.
They have never been problematic; the problem only comes when bigots make someone else's relationship their business.