Democrats compromise with governor, passing major changes to greenhouse gas bill