After a moment when hopes dimmed that the United States could become an international leader on climate change, legislation that Congress is poised to approve could rejuvenate the country’s reputation and bolster its efforts to push other nations to reduce greenhouse gas emissions more quickly.