That's a double edged sword. Assuming it's an 18 month contract, even when ram prices do go back to "normal" it's a year and a half until Apple has savings to pass onto to customers.
Raising prices allows Apple to reduce demand, possibly creating some flexibility in the durations of the current contracts.
If Apple knows it's been overpaying, you can be sure that they will leverage that in future negotiations.