Judge performs wedding for man he sent to prison