A federal judge ordered Virginia on Friday to restore more than 1,600 voter registrations that had been purged in recent months. U.S. District Judge Patricia Giles ruled that the state’s efforts to remove these registrations, under the guise of identifying noncitizens, violated federal law.