Court allows Trump to withhold funds from ‘sanctuary’ jurisdictions