A Brexit deal has been reached by negotiators in Brussels and will be the focus of a crunch Cabinet meeting on Wednesday.