Ireland became the first nation to approve same-sex marriage by a popular vote, sweeping aside the opposition of the Roman Catholic Church in a resounding victory Saturday for the gay rights movement and placing the country at the vanguard of social change. With the final ballots counted, the vote was 62 percent in favor of legalizing same-sex marriage, and 38 percent opposed.