The takeover of a major supplier in Spain of pasta, sauces and noodles has been approved by the country's competition watchdog.