The Scottish Parliament voted 105 to 18 to legalize marriage for same-sex couples.