En öl serverad i måttet pint – alltså knappt 0,57 liter – har säkrats för framtiden på brittiska pubar.