North Carolina OKs measure to let court workers opt out of gay marriage responsibilities