Federal appeals court to hear South Dakota same-sex marriage case