Financial Instruments and Fair Value Measurements - Schedule of Fair Value Hedging Relationship By Balance Sheet (Details) - Long - USD ($) $ in Millions |
Jun. 30, 2023 |
Jun. 30, 2022 |
|---|---|---|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | ||
| Carrying amount of hedged item | $ 28 | $ 68 |
| Cumulative hedging adjustments included in the carrying amount | $ 0 | $ 2 |