DEL RIO, Texas—In the second day of a hearing on Texas’ southern border, a federal judge who has lived on the border most of her life questioned whether the state’s actions to take control of illegal crossings were actually interfering with the federal government’s own work there.