Hungary’s conservative president resigned Saturday amid public outcry over a pardon she granted to a man convicted as an accomplice in a child sexual abuse case, a decision that unleashed an unprecedented political scandal for the long-serving nationalist government.