Appellate court rules in favor of Minneapolis in pension dispute