Ministers lose votes on legal advice and role of MPs as PM insists EU deal is “honourable compromise”.