Sir Keir Starmer “will not hesitate to take action” when ministers do not uphold high standards, Downing Street has said after a health minister was sacked over offensive comments made on a WhatsApp group.