His unexpected retirement in the battleground states comes in an already difficult Senate cycle for Democrats.