"Not "the UK". Schools are a devolved matter, so Westminster has no say in what's taught outside England."
Not technically true. Nothing in the Scotland Act prevents Westminster from imposing legislation on Scotland with prior approval. There's just a tacit convention on both sides that Westminster won't actually do…