State senators unanimously voted to put strict limits on prosecutors’ ability to jail victims of sexual assault or domestic violence who are reluctant or unwilling to testify against their attackers.