Perry was a three-term governor of Texas before serving as energy secretary under Donald Trump.