A federal judge in California on Tuesday temporarily blocked the Trump administration’s efforts to withhold funding from cities that limit their cooperation with federal immigration enforcement, another setback for President Trump in what is shaping up to be a long season of litigation surrounding the clash between the White House and so-called sanctuary cities.