Proposals quietly moving through the Legislature would create a new counterintelligence unit in state government, echoing the FBI’s controversial COINTELPRO in the 1960s.