Sen. Ted Cruz tells CNBC he supports the rights of states to decide whether to allow same-sex marriage.