Emanuel to appeal ruling on Chicago mayor's race