KABUL - A new Afghan law makes it legal for men to rape their wives , human rights groups and some Afghan lawmakers said Thursday , accusing President Hamid Karzai of signing the legislation to bolster his re-election prospects .