A South African court rules the president failed to comply with the law when recognising the new king.