After months of talks, the PM struck a deal on the UK’s place in Europe. But what has it achieved?