After you file

The SSN is not retroactive and does not apply to 2024 tax return.  Use the ITIN for your spouse for 2024 return,