The bill was approved in the Legislature mostly on partisan lines. Democrats cheered it as a measure to improve the environment and stimulate the economy, while Republicans said it would hurt the economy and increase future power prices.