Members of Congress in the House of Representatives have voted to condemn controversial tweets published by President Donald Trump.