A housing association has been prosecuted after allowing renovations to take place that put residents at risk of carbon monoxide poisoning.