May's government secured lawmakers' backing for its legislative plans after making a concession on abortion funding.