Minnesota is poised to prohibit book bans in schools and public libraries as part of an education bill the House approved Wednesday, the last step before it heads to the governor for his signature.

The law, which would become effective July 1, establishes a so-called “Library Bill of Rights” and states that libraries cannot restrict access to material “because of partisan or doctrinal disapproval.”

Democrats who backed the provision say it’s a necessary step in curbing politicized campaigns against books that focus on multiracial — and especially LGBTQ — experience. Those efforts have become more pronounced as school board politics have become increasingly polarized in the last few years.