Elon Musk’s company xAI has sued Minnesota over the state’s first-in-the-nation law that bans “nudification” technology on websites and apps, potentially providing a test for how far states can go in constitutionally regulating the use of artificial intelligence.