Professor Graham Parsons explains what's going on here; an excerpt:
Mr. Trump’s order prohibited any educational institution operated by the armed forces from “promoting, advancing or otherwise inculcating” certain “un-American” theories, including “gender ideology” and the idea that “America’s founding documents are racist or sexist.”
Mr. Hegseth’s memo went further, adding that the service academies were prohibited even from providing instruction about such topics. Mr. Trump and Mr. Hegseth also ordered that the academies shall “teach that America and its founding documents remain the most powerful force for good in human history.”
These were brazen demands to indoctrinate, not educate.