Virginia court revives lawsuit by teacher fired for refusing