Malta on track to legalize same-sex marriage