Egypt's top appeals court has ruled against President Mohamed Morsi’s prosecutor general amid ongoing political tensions in the country.