Legislation that would require state schools to teach cursive handwriting has been sent to Gov. Josh Shapiro for approval.