The new legislation aims to make it easier for victims of sexual violence to prosecute attackers.