The prime minister hails “excellent deal” with the EU, but a successful vote in Parliament is not yet certain.