A federal judge in Idaho on Friday largely rejected the state’s attempts to dismiss a lawsuit challenging a 2025 state immigration law.