New York Gay Marriage Caucus Didn't Break Rules, Says Court