Scottish National Party MPs walked out en masse from the UK parliament after their leader was ordered to leave the House of Commons in a row over Brexit.