A federal judge declined on Wednesday to block an effort by President Donald Trump to eliminate diversity, equity and inclusion initiatives by companies that do business with ​the US government.