Dan Andrews is dealt a political blow almost three years since he stepped down as premier – as councils refuse to carry out his new law