Just a few days before the transition period expired, the UK and the EU reached a last-minute agreement