I do not believe there is a "right" to murder unborn children. But I also don't believe that the federal government has any right to impose its views on abortion on the states without a Constitutional Amendment. If New York wants to maintain legalized abortion, the federal goverment has no right to force them to prohibit abortion.
It certainly does have the authority to do so. The unconstitutional NY statute deprives the people of the state of NY of their fundamental right to life.
This is not a right that can be legislated away at any level of government.
By your logic, the state of NY could pass a law banning the private ownership of land and all sorts of other ridiculous, unconstitutional garbage.