After an election where Republicans made substantial gains with working-class voters, Democratic leaders are debating what went wrong.