Taiwan government legalizes same-sex marriage