The federal appeals court in Richmond, Va., ruled in favor of transgender patients on Monday. The case was brought by Medicaid recipients in West Virginia and state employees in North Carolina.