Federal judge rules against White House push to restrict ‘sanctuary’ money