A senior minister has said the “police have done their job” as a man was arrested after spending more than 16 hours perched on the clock tower of Big Ben.