Legislators take step toward greener cars and trucks