NSW Labor backs same-sex marriage