The suit will likely take years to play out, but its arguments could affect how similar bills in other states proceed.