Legislation aimed at protecting Oklahoma students from the dangers of fentanyl has been signed into law by Gov. Kevin Stitt.