The apex court agreed with one of the most scathing rulings yet against the public protector and found the president did nothing wrong