The laws aim to force oil companies to help pay for damage from global warming. Industry is gearing up for state-by-state battles.