The European Union has reached a consensus on the price at which to cap Russian oil just days before the deadline.