Two Republican politicians in Virginia have revived an obscure anti-pornography law not invoked in decades to ask a judge for a restraining order preventing Barnes & Noble from selling certain books the lawmakers find objectionable to minors.