Democratic congresswoman nearly supported GOP speaker