Appeals court backs state in dispute over special ed services