The United States will be one of only four countries outside the Paris Agreement, which is designed to reduce global greenhouse gas emissions.