Summary of Changes in Accumulated Other Comprehensive Income (Loss) by Component (Parenthetical) (Detail) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 31, 2023 |
Mar. 31, 2022 |
Mar. 31, 2023 |
Mar. 31, 2022 |
|
| Derivatives | ||||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | ||||
| Unrealized gains (losses), tax | $ 1 | $ (1) | $ 3 | $ (7) |
| Net change related to other comprehensive income (loss), tax | (3) | 2 | (11) | 2 |
| Investments | ||||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | ||||
| Unrealized gains (losses), tax | 194 | (769) | (225) | (1,076) |
| Net change related to other comprehensive income (loss), tax | 199 | (766) | (212) | (1,075) |
| Translation adjustments and other | ||||
| Accumulated Other Comprehensive Income (Loss) [Line Items] | ||||
| Net change related to other comprehensive income (loss), tax | $ 0 | $ 0 | $ 0 | $ 0 |