Gov. Andrew M. Cuomo said Friday that he expected same-sex marriage legislation to be approved before the end of the legislative session next week, and indicated that to win passage of the measure he is prepared to yield to Republican concerns for greater protections of religious groups.