Amendment to crime and policing bill will change law to end prosecution of women who terminate pregnancies