Summary of Changes in Accumulated Other Comprehensive Income (Loss) by Component (Parenthetical) (Detail) - USD ($) $ in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Derivatives | ||||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | ||||
| Unrealized gains (losses), tax | $ 13 | $ (3) | $ 2 | $ (6) |
| Net change related to other comprehensive income (loss), tax | (9) | 0 | (8) | 0 |
| Investments | ||||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | ||||
| Unrealized gains (losses), tax | 89 | (197) | (421) | (307) |
| Net change related to other comprehensive income (loss), tax | 91 | (197) | (412) | (309) |
| Translation adjustments and other | ||||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | ||||
| Net change related to other comprehensive income (loss), tax | $ 0 | $ 0 | $ 0 | $ 0 |