Catholic Malta legalises gay marriage - how did it happen?

Catholic Malta legalises gay marriage - how did it happen?