Court rules S.Africa’s president violated Constitution