The American swimmer could face punishment from Olympic officials and lose millions of dollars' worth of endorsements.