European Commission president Jean-Claude Juncker has said the EU will accept an extension to Britain's EU membership until May 22.