Botswana’s government will appeal a high court ruling that decriminalized homosexuality, potentially resuscitating a law that punished gay sex by up to seven years in prison.