Education department takes matric results ban to court