Nearly two dozen states are calling on Congress to regulate artificial intelligence, warning that unchecked development could put Americans and the country at risk.