Northern Ireland legalizes abortion and same-sex marriage