The coalition passed some of the world 's most progressive social legislation , legalising gay marriage and euthanasia .