A California federal judge has blocked the Trump administration from requiring cities and local governments to follow “impermissibly vague” directives relating to immigration and diversity, equity and inclusion policies in order to receive federal transportation, infrastructure, housing and other grants that had already been appropriated by Congress.