On the sidelines of the negotiations, some diplomats turned from talking of rising seas and climbing temperatures toward how to punish the United States if Mr. Trump follows through, possibly with a carbon-pollution tax on imports of American-made goods.