The lawsuit filed by two dozen states seeks to invalidate the president’s new, 10 percent global tax on imports.