Democratic leaders, however, caught between the competing interests of the environmental movement and building trade unions — both traditionally strong allies of the party — didn’t share the goal of putting sweeping climate and environment legislation up for votes.