Eliot Spitzer , the state Attorney General and current gubernatorial candidate who defended New York 's ban on same-sex marriage in the Court of Appeals , made exactly this point in a detailed advisory opinion issued in 2004 in response to inquiries from local elected officials .