in exchange for financial and trade concessions from the u. s. , for which the president had cajoled and arm-twisted a reluctant congress , china had all but committed to signing a bilateral human-rights agreement that would open its prisons and criminal courts to u.n. and u.s. inspectors , bring its criminal and civil courts closer to western and international principles , and release longtime political prisoners .