North Carolina's governor has vetoed a bill that would have allowed some court officials to avoid gay marriage duties because of their faith.