An appeals court had found her appointment was invalid.