They may not process it with less than 30 days remaining on the I-94. For a lot of people, that means it has to be done before marriage, but with your schedule you should be getting married and applying for SSN within 60 days of arrival, which is fine. Make sure to allow time to get your certified marriage record back from your county clerk -- SSA wants evidence of filing not just the signed license. (They need to know about the marriage for two reasons: (1) if your bride is taking your last name, the marriage certificate serves as the name change document and (2) to establish her eligibility for future spousal benefits based on your work record)
Congratulations on getting through the process! Please complete your timeline so that others can know what to expect / the VisaJourney system can use your dates in its statistical analysis of how long different steps are taking.