Judge slams justice minister's decision to replace director general during an election, saying move 'stands in direct opposition to the clear ruling of the Supreme Court'