The Supreme Court refused to allow 19 Republican-leaning states to side with oil companies in a massive climate-change lawsuit.