U.S. judge rules naming official to temporarily head immigration agency unlawful