Some of the country’s biggest environmental groups failed to kill a bipartisan law to fast-track energy projects, raising questions about their influence and strategy.