EU clears way for China investment pact