Wells Fargo & Co. will buy back an estimated $700 million in troubled auction-rate securities from California investors under terms of a settlement announced by Attorney General Jerry Brown on Wednesday.

The banking giant will also pay the AG’s office $600,000 to cover investigation expenses and monitoring of the settlement’s terms. In exchange, Brown will drop the civil lawsuit he filed against Wells Fargo in San Francisco Superior Court in April.