In approving the state’s education budget early Friday morning, the GOP legislature and Democratic Gov. Gretchen Whitmer also added investment in school safety measures and the teacher pension system, thanks to unexpectedly high state revenues this year.