Judge rules CXC is immune from legal action in exam controversy