Last hurdle cleared for world’s largest trade deal to take effect in January