North Carolina passes law letting officials opt out of performing same-sex marriages