(Roe vs. Wade) vs. UVVA

Can anyone explain to me how the ruling in row vs. wade is morally consolidated with the unborn victims of violence act? I mean the act specifically mentions abortion as okay, but it would still seem to acknowledge a fetus as a person deserving of protection under the law at all points of a pregnancy.. It seems to me that both decisions undermine each other.