The senator from California, who was first elected in 1992, plans to serve out her term but will not run for re-election in 2024.