Officials in Montgomery County have agreed to issue marriage licenses to same-sex couples, though the state has a ban on same-sex marriage.

The county's register of wills, D. Bruce Hanes, said he wants to come down "on the right side of history and the law."

A lesbian couple contacted him last week to apply for a marriage license. The two women later changed their minds after talking to the American Civil Liberties Union. They feared their license would be invalidated. But Hanes is still prepared to issue same-sex marriage licenses.

"Had the couple sought the license today, I would have issued it and wished them all the freedom, independence, happiness and rights that our commonwealth’s Constitution purports to grant to them," Hanes said.

Two weeks ago, the ACLU of Pennsylvania filed a lawsuit in federal court challenging the state's Defense of Marriage Act.

Pennsylvania Attorney General Kathleen Kane later refused to defend the law in court, saying she could not defend an unconstitutional law.

Watch video, courtesy of CBS Philly, below:

[Same sex couple via Shutterstock]