The House of Commons has upheld a ban on letting MPs skip the queue to pay respects to Queen Elizabeth II.