Voters in South Dakota have rejected a proposal to add protections for abortion rights to the state constitution, preserving a near-ban there.