Federal agencies that terminated more than a thousand research grants at the University of California last year admitted that they used keywords related to diversity, gender, vaccine hesitancy and COVID-19 to screen for projects that ran afoul of the Trump administration’s priorities.