A federal judge on Wednesday provided a detailed explanation of why he believed the Trump administration’s cancellation of some grants for scientific and health research last month constituted acts of discrimination based on sexual orientation, gender, and race.

Judge William G. Young of the U.S. District Court for the District of Massachusetts traced the history of the grant cancellations that occurred this year in a 103-page filing, including copies of internal memos and emails that revealed officials’ plan to stop funding any research that aligned with the White House’s flexible definition of diversity, equity, inclusion, and accessibility, or DEI. The judge referred to the National Institutes of Health’s “newly-minted war” against “undefined concepts” pertaining to DEI as