Terms of Irish abortion bill agreed by Cabinet