There is no exemption period for a O-1 visa holder as they were required to pay FICA taxes since Day 1. Your spouse became a resident alien as soon as he qualified under the substantial presence test.
Since you are no longer exempt, you may file jointly in 2024.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"