The major indexes rose toward record highs Thursday with Tesla regaining a key level. Apple earnings beat views late.