Since the supreme court recognizes a right of personal gun ownership in the 2nd amendment and the 14th amendment applies the rules of the constitution to the state governments as well, the states cannot violate a person's right to personal gun ownership.
The supreme court does not recognize a right to an abortion in the constitution so the issue is kicked back to the states per the 10th amendment.
States rights only apply when things are not recognized as constitutional rights.
Like I agree with the NY ruling but it’s explicitly limiting the power of the state.