Trump administration has outlawed ‘gender ideology’ at service academies, and professors say they have faced censorship and political pressure