SAN FRANCISCO AND WASHINGTON, D.C. — Volkswagen has agreed to give buyers of nearly 600,000 vehicles with emissions cheating software the option of selling the cars back or getting them fixed, a judge announced April 21.

Senior U.S. District Judge Charles Breyer provided few details about the settlement between the automaker and the federal government. The agreeement will include a fund for corrective efforts and Volkswagen will committ money to promote green vehicle technology, reports the Los Angeles Times.

Volkswagen would spend just over $1 billion to compensate the owners.