The revised version of the Withdrawal Agreement was reached just in time for a crucial EU summit.