Every Democrat in the House voted to condemn the president’s remarks, with only four Republicans joining them