Chief Executive Officer Sam Altman said the group would ban the use of its systems to spy on Americans.