Cuomo signs legislation protecting LGBTQ rights