David Cameron's dogged work won tussle in Brussels – now he faces fight at home