Lawmakers and campaigners in Portugal argued the law, which previously required prosecutors to show that an attack involved “violence”, had failed to protect people attacked while they were unconscious or coerced into having sex against their will.