Comedians who lampooned Kamala Harris and Joseph R. Biden Jr. are finding that their fortunes rise and fall based on the fates of the people they portray.