Maternal immunization with 2 doses of vaccine was 97% and 53% effective against infant hospitalization from delta and omicron variants, respectively. The effectiveness of the vaccine in preventing infant hospitalization declined by nearly 20% after 16 weeks. Receiving the second dose in the third trimester yielded the greatest benefit.