Mgeme Kalilani, the president’s spokesperson, described the ruling as “a serious miscarriage of justice and an attack on the foundations of the country’s democracy…”