A federal judge issued an injunction to permanently block President Trump’s executive order to deny funding to cities that refused to cooperate with federal immigration officials, after finding the order unconstitutional.