, permits, contracts, rights-of-way, or other rights or authorizations issued pursuant thereto shall forthwith be altered by the Secretary to eliminate such adverse effect by application of different techniques or prohibitions of one or more such practices or uses: Provided, however, That use of such water for the production of energy and the transmission of such energy through and over the unit a