It’s a state law, because they’re legislating on an issue that the federal government does not have authority to legislate on. I don’t see what the problem is.
"No person shall be deprived of life without due process of law."
-- The Fifth Amendment to the United States Constitution
"No State shall deprive any person of life without due process of law; nor deny to any person within its jurisdiction the equal protection of the laws."
-- The Fourteenth Amendment to the United States Constitution