The legislation would lead to additional prison time for jail and prison guards who sexually assault inmates or engage in other sexual misconduct.