The European Parliament has voted in favour of including access to abortion in the EU's Charter of Fundamental Rights.