York County certifies vote amid legal challenge demanding recount