GENEVA — Switzerland voted by a wide margin to allow same-sex couples to marry in a referendum on Sunday, bringing the Alpine nation into line with many others in western Europe. Official results showed the measure passed with 64.1% of voters in favor and won a majority in all of Switzerland’s 26 cantons, or states. Switzerland’s parliament and the governing Federal Council supported the “Marriage for All” measure.