A New York judge has granted a motion to suppress in a weapon-possession case, holding that texting while driving was not illegal in June 2009 and could not serve as the basis of a search and seizure.