Falling costs drive US toward green energy — even as political tides shift