Court reverses lower court ruling that said large staff cuts would effectively hamstring the federal education agency.