Tens of thousands of household energy customers have secured payouts after a compliance review found they had been overcharged.