The proposed bills would place responsibility for wrongdoing caused by AI on those responsible for directing it.