NASA says the powerful telescope has allowed it to detect carbon dioxide in the atmosphere of WASP-39 B.