North Carolina okays opt-out for officials who oppose same-sex marriage