As much as I despise Trump and fear the possibility of his presidency, this ruling seems to be a general good thing in the concept of medical ethics and practice.
Now if the parties required a person to be examined by a psychiatrist before allowing them on the ticket,that would be actually useful. But as that would probably eliminate most of the candidates they never will 