Va. school to appeal ruling to reinstate teacher who opposed