New York's top court will not hear a challenge to the state's 2011 law legalizing same-sex marriage, ending the most prominent objection to the law.