How the Queen used her clout to save Britain from a spot of bother