Two dozen states filed a lawsuit challenging President Trump’s legal authority to impose new global tariffs.