JOHANNESBURG — A gay couple in Malawi sentenced to 14 years in prison for “unnatural acts” was pardoned Saturday shortly after Secretary General Ban Ki-moon of the United Nations met with that country’s president.