I would imagine it is much easier to enforce as part of a grant agreement that organisations have signed. Especially if the law is either not really a law (yet), or it might be invalidated by a court on free speech grounds. There's probably a reason someone wrote it into the grant agreement, and that they're declaring DEI stands for something other than the familiar Diversity, Equity & Inclusion.