More than two years after a fierce legislative debate, a federal judge blocked key parts of an immigration law that banned so-called sanctuary cities in Florida.