The sale of Spanish bakery Panrico to US investment fund Oaktree has been cleared by the European Commission.