Greens back change in the law on religion and civil partnerships