Republican and Democratic leaders in Congress scramble to keep up with quickly shifting public opinion on energy.