Aust to foil China bid to join trade pact