Overfill limiting valve

Exactly what is the valve supposed to do ??
Yote