The agreement must now be approved by Congress and risks upsetting both major political parties in the US.