Two U.S. science agencies say 2021 was the sixth hottest year on record globally, part of a long-term warming trend.