LOUISVILLE, Ky.—Andy McDonald recalls a decade-old Kentucky legislative hearing on an energy diversification bill with the same sense of frustration that he felt back then, when he testified before a panel of lawmakers who were mostly coal industry loyalists.