It’s believed to be the first time a 2012 New Jersey law that treats a texting driver as harshly as a drunken driver was tested in court