May and June saw more than 3,000 estimated deaths as extreme temperatures drove the highest toll since monitoring began in 2016.