INCOME TAXES - Unrecognized Tax Benefits (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Reconciliation of the beginning and ending amount of gross unrecognized tax benefits [Roll Forward] | |||
| Balance of gross unrecognized tax benefits, beginning of year | $ 140 | $ 65 | $ 63 |
| Gross amounts of increases as a result of tax positions taken during a prior period | 18 | 83 | 4 |
| Gross amounts of decreases as a result of tax positions taken during a prior period | (11) | (9) | (4) |
| Gross amounts of increases as a result of tax positions taken during the current period | 35 | 7 | 5 |
| Amounts of decreases in unrecognized tax benefits relating to settlements with taxing authorities | (4) | (2) | (1) |
| Reductions to unrecognized tax benefits as a result of a lapse of the applicable statutes of limitations | (4) | (4) | (2) |
| Balance of gross unrecognized tax benefits, end of year | $ 174 | $ 140 | $ 65 |