Valuation and Qualifying Accounts (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Allowance for credit losses | |||
| Movement in Valuation Allowances and Reserves [Roll Forward] | |||
| Balance as of beginning of year | $ (50) | $ (44) | $ (44) |
| Additions | (17) | (9) | (8) |
| Utilization | 6 | 3 | 5 |
| Other | 0 | 0 | 3 |
| Balance as of end of year | (61) | (50) | (44) |
| Deferred tax valuation allowance | |||
| Movement in Valuation Allowances and Reserves [Roll Forward] | |||
| Balance as of beginning of year | (140) | (119) | (72) |
| Additions | (7) | (15) | (52) |
| Utilization | 10 | 1 | 3 |
| Other | 28 | (7) | 2 |
| Balance as of end of year | $ (109) | $ (140) | $ (119) |