The vote came despite Pena submitting his resignation a day earlier. Lawmakers pressed ahead with impeachment proceedings.