The Scottish Parliament has backed plans to allow same-sex marriages to go ahead by 105 votes to 18. The first gay and lesbian weddings could take place this autumn.