Teams have tools they can use to shift money around like turning a portion of a players base salary into a prorated signing bonus and spread that out over the length of the contract.
Teams can also extend contracts to spread some of that money out over time