(CNN) - New Hampshire lawmakers on Wednesday passed a same-sex marriage bill, now headed to Gov. John Lynch.
The state House passed the bill in a 178-167 vote. The Senate last week approved the legislation in a 13-11 vote.
The bill passed Wednesday differed from an earlier bill passed in the House by distinguishing between civil and religious marriage. It allows each religion to decide whether to acknowledge same-sex marriage, but extends the option of civil marriage to any two individuals.