Sales at Tesla were better than expected. The maker of EVs reported record sales while dealing with a recession and a supply chain problem.