School criticised for allowing students to opt out of Black History Month curriculum