SC dismisses case against President