Iraq mulls law that would end foreign military presence