An unlikely figure has emerged as one of the few Republican voices willing to publicly criticize Donald Trump.