EU members will have to take in migrants according to a migrant quota system or pay EUR 22 000 for every migrant not received.