In a first for Asia, Taiwan legalized same-sex marriage—with caveats