Shami cleans up tailenders as England post 283