According to the lesson, the state that passed the first immigration law in 1862 is : California
Back then, the state of California became a main target destination for Illegal chinese immigrants and the state threat to punish the one who helped any immigrants from China into the state