Jonny Bairstow’s side skittled Essex for 131 in their second innings, with Yorkshire easing to the 41 runs needed.