Cases of major sexually transmitted infections rose to more than 2.5 million in 2021, the Centers for Disease Control and Prevention reported.