An ethics panel ruled Thursday that the former top lawyer for the Indiana Utility Regulatory Commission violated state law when he presided over cases involving a utility with which he was trying to secure a more lucrative job.