Appeals court upholds ruling barring IRS from sharing data with ICE