Abortion rights were a key factor for some races in the 2022 midterm elections, according to exit polling.