Bill restricting hiring of teachers with criminal backgrounds takes effect July 1