The government refused to be moved on its position for weeks – but Gordon Brown announced the dramatic change during a House of Commons session