A federal judge temporarily blocked US President Donald Trump's crackdown on diversity, equity and inclusion (DEI) programs.