Massachusetts prison officials are set to ask a federal appeals court to overturn a ruling granting a taxpayer-funded sex change for a transgender.